Displaying 2 results from an estimated 2 matches for "rpipe".
Did you mean:
ripe
2020 Jul 20
2
Speed-up/Cache loadNamespace()
...ime ago), I created a small c
> program to run R, read from the named pipe from within c, then wrote
> it's contents to R's standard in.
>
> It might 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...
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