Skip to content

webR 0.3.2

Compare
Choose a tag to compare
@georgestagg georgestagg released this 09 Apr 09:29
· 18 commits to main since this release

New features

  • The captureGraphics option in EvalROptions now allows the caller to set the arguments to be passed to the capturing webr::canvas() device (#390).

  • A subclass RDataFrame is now available for explicit construction of an R object with class data.frame. RDataFrame extends the RList class, and construction must be with data that can be coerced into an R data.frame, otherwise an error is thrown.

  • The RList constructor now takes an optional second argument to define names when constructing a list. The argument should be an array of strings, or null for an unnamed list (the default).

Breaking changes

  • When using the generic RObject constructor, JavaScript objects and object arrays are now reserved for constructing an R data.frame. To create a standard R list, use the RList constructor directly (#398).

Bug Fixes

  • When capturing graphics with captureR(), clean-up now occurs even when the evaluated R code throws an error. This avoids leaking graphics devices on the device stack.

  • Use backticks when reporting an R call as part of an error message (#397).