Re: [R-pkg-devel] Options "reset" when options(opts)

2024-07-10 Thread Greg Jefferis
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

Re: [R-pkg-devel] [External] Use of ‘R_InputHandlers’

2024-07-10 Thread luke-tierney
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’

[R-pkg-devel] Options "reset" when options(opts)

2024-07-10 Thread John Muschelli
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

[R-pkg-devel] Use of ‘R_InputHandlers’

2024-07-10 Thread Duncan Murdoch
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