Releases: renkun-ken/rlist
Releases · renkun-ken/rlist
v0.4
New features
- Include a dataset
nyweather
scraped from OpenWeatherMap (#2) list.load
now supports text-based progress bar whenprogress = TRUE
which is by default
enabled if over 5 files are to be loaded. (#92)- New function
list.names
gives a list or vector names by mapping. - New functions
list.first
andlist.last
find the first or last list element that meets a
given condition. - New function
list.unzip
to transform a list of elements with similar structure into a
list of decoupled fields
Improvements
- Add error handling in several edge cases. (#18)
list.group
now supports grouping by multi-key which produces multi-level list. (#69)list.load
now supports loading from multiple filenames given in character vector. (#74)list.load
is now able to guess the file format even if the file type is not specified. (#76)list.maps
now allows the usage of..1
,..2
, etc. to refer to unnamed arguments. (#80)list.load
now supports merging and ungrouping as means to aggregating loaded results. (#82)list.stack
now usesdata.table::setDF
to convertdata.table
todata.frame
if
data.table = FALSE
, which is done by reference and thus has higher performance.
Bug fixes
list.search
now takesn
as the number of returned vector rather than that of the
elements in all returned vectors, and is now able to jump out when the result set reaches
given capacity. (#47, #84)- Fix how
list.table
deals withNULL
values. (#73) - Fix how wrapper functions deal with default arguments. (#75)
- Fix the dynamic scoping issues in
list.table
. (#86) list.all
andlist.any
behave the same asall
andany
respectively when the input is empty. (#87)- One-sided formula does not result in error now. (#89)
list.flatten
now preserves names as specified. (#90)- Fix incorrect processing for fallback in
list.findi
. (#91) - Fix the implementation in
list.group
working with multi-key. (#93) - Fix incorrect ordering if some entries are multi-valued vectors and others and single-
valued. Iflist.order
andlist.sort
encounter such situation, they now report
error rather than silently produced unreliable results. (#94) - Fix inconsistencies in
list.all
,list.any
,list.first
andlist.last
.
Deprecation
equal()
is removed and related packages are now suggested rather than imported. (#70)summary.list()
is deprecated. (#70)- No longer interprets
x -> f(x)
as a form a lambda expression. Usex ~ f(x)
instead. (#54) desc(x)
is no longer supported inlist.sort
andlist.order
. Use-x
or(x)
instead. (#66)
v0.3
- API Break:
list.search
now evaluates expression recursively in a list and supports limited lambda expression (only value is defined). - Add
equal()
function for logical and fuzzy filtering and searching which supports exact equality, atomic equality, inclusion, pattern matching, string-distance tolerance. - Add
List()
to provide an environment in which most list functions are defined for light-weight chaining that does not reply on external operators.
v0.2
Add list.join
, list.mapv
, list.do
, list.clean
, list.parse
Add vignettes
v0.1
More new functions