search for: rfifo

Displaying 2 results from an estimated 2 matches for "rfifo".

Did you mean: fifo
2020 Jul 20
2
Speed-up/Cache loadNamespace()
...be possible to do it without the c program. > Haven't checked. For testing purposes, you can do: - in a shell 1: ?mkfifo rpipe ?exec 3>rpipe # without this trick, Rscript will end after the first "echo" hereafter or at the end of your first script. - in a shell 2: ?Rscript rfifo - in a shell 3: ?echo "print('hello')" > rpipe ?echo "print('hello again')" > rpipe Then in the shell 2, you will see the output: [1] "hello" [1] "hello again" etc. If your R scripts contain "stop()" or "q('yes...
2020 Jul 19
6
Speed-up/Cache loadNamespace()
Dear all, in our current setting we have our packages stored on a (rather slow) network drive and need to invoke short R scripts (using RScript) in a timely manner. Most of the script's runtime is spent with package loading using library() (or loadNamespace to be precise). Is there a way to cache the package namespaces as listed in loadedNamespaces() and load them into memory before the