- Bugfix:
crate()
is using the correct 'topenv' environment now. - Remove the unused 'safe' variants of dictionary getters
dictionary_sugar_get()
and corresponding functions now take a list of dictionaries as optional argument.dicts_suggest
to look for suggestions if.key
is not part of the dictionary.
- refactor: Update
as_callback()
functions.
- Feat: Added
strip_screfs
S3 generic, which removes source references from objects - The RNG state is now copied to the callr session when using
encapsulate()
.
- Added argument
.compile
to functioncrate()
because R disables byte-code compilation of functions when changing their enclosing environment - Added the possibility to include prototype arguments when adding elements to a
Dictionary
- Removed unused argument
required_args
fromDictionary
class - Disable leanification when
ROXYGEN_PKG
environment variable is set
- Updated default environment for
crate()
totopenv()
(#86). - Added safe methods for dictionary retrieval (#83)
- fix: Fixed an important bug that caused serialized objects to be overly large
when installing mlr3 with
--with-keep.source
(#88)
- Added new encapsulation mode
"try"
. - Added functions
dictionary_sugar_inc_get
anddictionary_sugar_inc_mget
which allow to conveniently add suffixes to dictionary ids when retrieving objects.
- Added initial support for a callback mechanism, see
as_callback()
. - Added helper
catn()
. - Added helper
set_params()
. - Added assign method for
get_private()
. - Elements of a dictionary via
dictionary_sugar_mget()
are now returned named.
- Added helper
get_private()
. - Added helper
map_br()
andmap_bc()
. - Added helper
recycle_vectors()
. - Added helpers
walk()
,iwalk()
andpwalk()
.
- Added helper
deframe()
.
- Added helper
capitalize()
. - Added helper
to_decimal()
. - Fixed cleanup in
register_namespace_callback()
.
- New (internal) helper functions:
calculate_hash()
andassert_ro_binding()
- R6 objects retrieved from the dictionary are now properly cloned.
- Fixed compilation for R versions older than 3.5.0 (#59).
- Changed return type of
reorder_vector()
. - Added assertions in
pmap()
to avoid a segfault (#56). - Added
count_missing()
.
- New function
reorder_vector()
. formulate()
can now quote all terms, defaulting to quote all terms on the right hand side.
- Make more map functions work nicely with data frames and data tables.
formulate()
now supports multiple LHS terms.- Added
format_bib()
andcite_bib()
helpers for working with bibentires and roxygen2.
- New argument
.timeout
forinvoke()
. - New argument
.timeout
forencapsulate()
. - Removed
cite_bib()
and Rd macro\cite{}
and removed orphaned packagebibtex
from suggests. - New argument
quietly
forrequire_namespaces()
. - New function
crate()
to cleanly separate a function from its environment. - New function
register_namespace_callback()
.
- Added
compose()
function for function composition. - Added method
leanify_package()
that shrinks the size of serialized R6 objects.
- Added helper functions to assist in generating Rd documentation for 'mlr3' objects.
- Introduced a placeholder for column name prefixes in
unnest()
.
- Fixed an issue with
rcbind()
for columns ofx
namedy
(#42). - Fixed broken
on.exit()
ininvoke()
if both a seed and a list of options were provided.
- New function
check_packages_installed()
. - New function
open_help()
.
map_dtr()
,imap_dtr()
andpmap_dtr()
now pass.idcol
down to argumentidcol
ofdata.table::rbindlist()
.cite_bib()
can now handle packages with multiple citation entries.- Added argument
wrap
tocatf()
,messagef()
,warningf()
andstopf()
to wrap the respective messages to a customizable width. - Added
with_package()
helper, similar to the one in packagewithr
.
cite_bib()
or Rd macro\cite{}
can now return the citation information of the package if key is set to"pkg::citation"
.- Updated dictionary helpers.
- Fixed error in C code discovered by UBSAN checks on CRAN.
- Added
dictionary_sugar_mget()
. - Renamed
dictionary_sugar()
todictionary_sugar_get()
. - Added function
cite_bib()
and Rd macro\cite{}
to insert entries from bibtex files into roxygen documentation. unnest()
now creates list columns for non atomic list elements.
- Added argument
na_rm
towhich_max()
andwhich_min()
. - Fixed a bug in
as_short_string()
for empty atomic vectors.
- New function
detect()
. - New function
dictionary_sugar()
. - It is now asserted that the return value of
Dictionary$get()
is an R6 object. - Fix some assertions in
Dictionary
- New function
named_vector()
. - New function
keep_in_bounds()
. - New function
set_col_names()
. - New function
distinct_values()
. - Added argument
.key
torowwise_table()
. - Additional arguments passed to
Dictionary$get()
andDictionary$mget()
must now be named.
- New function
encapsulate()
to call functions while recording a log. invoke()
: New arguments.opts
and.seed
to temporarily set options or random seeds, respectively.- Fixed warnings about partial argument matching.
- Initial release.