Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Abby Spurdle
It's possible to run R (or a c parent process) as a background process via a named pipe, and then write script files to the named pipe. However, the details depend on what shell you use. The last time I tried (which was a long time ago), I created a small c program to run R, read from the named pi

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Gábor Csárdi
On Mon, Jul 20, 2020 at 9:15 AM Abby Spurdle wrote: > > It's possible to run R (or a c parent process) as a background process > via a named pipe, and then write script files to the named pipe. > However, the details depend on what shell you use. I would use screen or tmux for this, if this is an

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Serguei Sokol
Le 20/07/2020 à 10:15, Abby Spurdle a écrit : It's possible to run R (or a c parent process) as a background process via a named pipe, and then write script files to the named pipe. However, the details depend on what shell you use. The last time I tried (which was a long time ago), I created a

[Rd] Methods for objects inheriting from lme (nlme package)

2020-07-20 Thread Johannes Ranke
Dear R developers, One function in my mkin package [1] returns an object that is originally created by nlme(), but contains some additional information. Its class is c("mmkin.nlme", "nlme", "lme"). Now I would like to use the anova() method for lme objects for comparing such S3 objects. Unfort

Re: [Rd] Methods for objects inheriting from lme (nlme package)

2020-07-20 Thread Johannes Ranke
Am Montag, 20. Juli 2020, 11:12:25 CEST schrieb Johannes Ranke: > Dear R developers, > > One function in my mkin package [1] returns an object that is originally > created by nlme(), but contains some additional information. Its class is > c("mmkin.nlme", "nlme", "lme"). > > Now I would like to u

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Abby Spurdle
Thank you Serguei and Gabor. Great suggestions. > If your R scripts contain "stop()" or "q('yes')" or any other error, it > will end the Rscript process. Kind of watch-dog can be set for automatic > relaunching if needed. It should be possible to change the error handling behavior. >From within R

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Gabriel Becker
Mario, Abby, et al. Note that there is no fully safe way of unloading packages which register methods (as answered by Luke Tierney here: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16644 ) which makes the single R session running arbitrary different scripts thing pretty iffy over the long

[Rd] trivial typo in ?Matrix::sparse.model.matrix.Rd

2020-07-20 Thread Ben Bolker
  "form" -> "from". Diff against latest SVN: Index: sparse.model.matrix.Rd === --- sparse.model.matrix.Rd    (revision 3336) +++ sparse.model.matrix.Rd    (working copy) @@ -4,7 +4,7 @@  \alias{fac2sparse}  \alias{fac2Sparse}  \descr