[R] r help: source-function is very slow
Uwe Ligges
ligges at statistik.tu-dortmund.de
Thu Jan 19 15:11:35 CET 2012
On 19.01.2012 14:25, Jos van Nijnatten wrote:
> Hello everybody,
> I noticed a performance problem when using the source-function in R.
> When I try to source an r script that is located in the same directory
> as the script I execute via command line ('R -f file.r' contents
> 'source("someOtherScript.r")') it's very fast. But if I put
> 'someOtherScript.r' in another directory (say ../../R) R takes moments,
> if not minutes to locate and load the script. Is there another way to do
> this that is not slow?
We are certainly interested in a reproducible example. Or could it be
that your "../../R" is on some other possibly network mounted file system?
Uwe Ligges
> Thanks, Jos
>
More information about the R-help
mailing list