Displaying 3 results from an estimated 3 matches for "checkvalidsymbolid".
2018 Apr 03
1
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
...plot work fine.
Also, the error message we get is not very helpful:
> saveRDS(r, 'recordedplot.rds')
> r <- readRDS('recordedplot.rds')
> png('test2.png')
> replayPlot(r)
Error: NULL value passed as symbol address
{coming from deep down: checkValidSymbolId() in src/main/dotcode.c }
I've pondered a bit and in the end found it easy enough to
tryCatch() the error, and "do the right thing" instead.
As that should typically only happen in exactly such a use case,
the change should be "uniformly >=" the previous state.
Ideally,...
2008 Dec 27
1
Patch to fix small bug in do_External and do_dotcall
...tines("grDevices")$.Call[["R_GD_nullDevice"]]
> .Call(sym$address, 1)
Error: 'getEncChar' must be called on a CHARSXP
The error stems from the fact, that both do_External and do_dotcall
expect CAR(args) to be a string, while it might be a NativeSymbolInfo
object. checkValidSymbolId() already handles this, so the fix is to
use the symbol name returned from resolveNativeRoutine().
After applying the attached patch (against R-trunk revision 47348) the
output looks like this:
% LC_ALL=C bin/R --vanilla < symname-bug.R
R version 2.9.0 Under development (unstable) (200...
2018 Apr 02
3
recordPlot/replayPlot not working with saveRDS/readRDS
The documentation for recordPlot says the following:
> As of R 3.3.0, it is possible (again) to replay a plot from another R session using, for example, saveRDS and readRDS.
However, I haven't been able to save and restore a plot displaylist
and have it work within the same R session, using R 3.4.3 or 3.3.3.
Here's an example:
# Save displaylist for a simple plot