Whenever I want to run a complex application in R that needs many packages and libraries, I have to install one by one all the dependencies and then re run again to see the next dependency. I am having the same problem with running a shinydashboard
app. I wonder if there is a way the first time I am about to execute an R script, at the same time to install on the fly all the dependencies this script needs. I am running an R server on windows. Thanks!
Perhaps you want to use pacman
library(pacman)
p_load(dplyr, reshape2) # install if needed, then load
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.