LudvigOlsen/xpectr: xpectr 0.4.0
Authors/Creators
Description
wrapStringAddin()now wraps short strings inpaste0()as well. Previously, strings that were too short to be split were not wrapped.Adds
insertExpectationsCopyEnvAddin()addin. Same asinsertExpectationsAddin()but where code is evaluated in a deep copy of the parent environment. This is especially useful when testing a function that alters non-local variables and has side effects (error/warnings/messages).Multiple functions now allow working on a deep copy of the environment (see new
copy_envargument). This is useful when testing a function that alters non-local variables. It is disabled by default to save memory.gxs_function()now allows parallelization of the expectation generation process. Requires a backend, as setup withdoParallel::registerDoParallel(4). Remember to setparallel = TRUEwhen callinggxs_function().strip()andstrip_msg()now strips ANSI control sequences by default.strip()andstrip_msg()can now make the strings lowercase (disabled by default).capture_side_effects()disablescrayonlocally before evaluating the expression (by default). Avoids ANSI control sequences in messages.capture_parse_eval_side_effects()now has the same options ascapture_side_effects().Bug fix:
"Assigned data "NULL" must be compatible with existing data."
Files
LudvigOlsen/xpectr-v0.4.0.zip
Files
(157.7 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:87d1f07b925f7eaf8259206b268da7e5
|
157.7 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/LudvigOlsen/xpectr/tree/v0.4.0 (URL)