webR 0.3.2
New features
-
The
captureGraphics
option inEvalROptions
now allows the caller to set the arguments to be passed to the capturingwebr::canvas()
device (#390). -
A subclass
RDataFrame
is now available for explicit construction of an R object with classdata.frame
.RDataFrame
extends theRList
class, and construction must be with data that can be coerced into an Rdata.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, ornull
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 Rdata.frame
. To create a standard R list, use theRList
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).