问题
I have a run_stat.r
script that can run in command line such as Rscript anova.r
on my ubuntu server.
And the file content is like:
#load package
library(ez)
#run code....
The problem is that the loading time of ez package would take 2~3 seconds...
Can R preload the package one time, and then doesn't need to re-load the same package every time I run the script ?
Or do any suggestions of speed up the loading time of the package?
Many Thanks!!!
来源:https://stackoverflow.com/questions/42933479/how-to-speed-up-the-package-library-loading-time-in-r