How to speed up the package/library loading time in R?

◇◆丶佛笑我妖孽 提交于 2019-12-24 06:34:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!