Dear John,
You need to collect the return value when setting options. This will include an
explicit NULL value for an option that was previously NULL.
Best,
Greg Jefferis.
options(digits.secs = NULL)
noset2 = function() {
opts <- options(digits.secs = 3)
on.exit(options(opts))
print(op
On Wed, 10 Jul 2024, Duncan Murdoch wrote:
An update to the rgl package was rejected with this note:
* checking compiled code ... NOTE
File ‘rgl/libs/rgl.so’:
Found non-API call to R: ‘R_InputHandlers’
Compiled code should not call non-API entry points in R.
See ‘Writing portable packages’
When setting options in a function, I have always used the following:
opts <- options()
on.exit(options(opts), add = TRUE)
and assumed it "reset" options to what they were prior to running the
function. But for some options that are set to NULL, it does not seem to
reset them. Specifically, I
An update to the rgl package was rejected with this note:
* checking compiled code ... NOTE
File ‘rgl/libs/rgl.so’:
Found non-API call to R: ‘R_InputHandlers’
Compiled code should not call non-API entry points in R.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and se