I want to preload a few packages in opencpu. I tried a few variations in preload[ ] in file /etc/opencpu/server.conf but it doesn't work. wondering what is the correct syntax that goes into "preload[]" array field ? any example would help.
It should be a vector of package names, e.g:
"preload": ["ggplot2", "MASS", "lme4"]
Note that packages that are preloaded are not attached. Hence, they show up in sessionInfo() but not in search(). This is to prevent side-effects or masking-conflicts.
Once a package has been preloaded, attaching it should be almost instant.