Re: [Rd] [FORGED] recordPlot/replayPlot not working with saveRDS/readRDS

2018-04-03 Thread Paul Murrell
Thanks for the fix Martin. Paul On 04/04/18 02:07, Martin Maechler wrote: Paul Murrell on Tue, 3 Apr 2018 09:41:56 +1200 writes: > Hi What you are doing "wrong" is loading a recordedplot > into the same session that it was created in. The > saveRDS()/readRDS() works if

Re: [Rd] [FORGED] recordPlot/replayPlot not working with saveRDS/readRDS

2018-04-03 Thread Winston Chang
On Mon, Apr 2, 2018 at 4:41 PM, Paul Murrell wrote: > Hi > > What you are doing "wrong" is loading a recordedplot into the same session > that it was created in. The saveRDS()/readRDS() works if you save in one R > session and then read in a different R session. The assumption is that if > you a

Re: [Rd] names lost in functions from packages installed by R-devel r74500

2018-04-03 Thread luke-tierney
On Tue, 3 Apr 2018, Martin Maechler wrote: Martin Maechler on Tue, 3 Apr 2018 17:03:02 +0200 writes: Francois Rousset on Tue, 3 Apr 2018 16:38:42 +0200 writes: >> Dear list members, >> If I install with R-devel r74500 on Windows (sessionInfo below) the >> attached 'bugdem

Re: [Rd] names lost in functions from packages installed by R-devel r74500

2018-04-03 Thread Martin Maechler
> Martin Maechler > on Tue, 3 Apr 2018 17:03:02 +0200 writes: > Francois Rousset > on Tue, 3 Apr 2018 16:38:42 +0200 writes: >> Dear list members, >> If I install with R-devel r74500 on Windows (sessionInfo below) the >> attached 'bugdemo' package with the s

Re: [Rd] names lost in functions from packages installed by R-devel r74500

2018-04-03 Thread Martin Maechler
> Francois Rousset > on Tue, 3 Apr 2018 16:38:42 +0200 writes: > Dear list members, > If I install with R-devel r74500 on Windows (sessionInfo below) the > attached 'bugdemo' package with the single function > foo <- function() { >   named <- c("bar"=TRUE) >

[Rd] names lost in functions from packages installed by R-devel r74500

2018-04-03 Thread Francois Rousset
Dear list members, If I install with R-devel r74500 on Windows (sessionInfo below) the attached 'bugdemo' package with the single function foo <- function() {   named <- c("bar"=TRUE)   print(named)   return(named) } then run > bugdemo::foo() [1] TRUE [1] TRUE The "bar" name is lost. It is

Re: [Rd] [FORGED] recordPlot/replayPlot not working with saveRDS/readRDS

2018-04-03 Thread Martin Maechler
> Paul Murrell > on Tue, 3 Apr 2018 09:41:56 +1200 writes: > Hi What you are doing "wrong" is loading a recordedplot > into the same session that it was created in. The > saveRDS()/readRDS() works if you save in one R session and > then read in a different R session.

Re: [Rd] Base R examples that write to current working directory

2018-04-03 Thread Martin Maechler
> Henrik Bengtsson > on Fri, 30 Mar 2018 10:14:04 -0700 writes: > So, the proposal would then be to write to tempdir(), > correct? If so, I see three alternatives: > 1. explicitly use file.path(tempdir(), filename), or > tempfile() everywhere. I think it should clea