I want to install additional packages besides the default ones every time I restart my R Session.
I have tried this:
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os))) install.packages(c( 'shinydashboard', 'shinyWidgets', 'rlist', 'sortable', 'tidyverse', 'XML', 'DescTools', 'plotly', 'leaflet', 'tidyquant', 'umap' ))
And this:
options(defaultPackages = c(getOption("defaultPackages"), "tidyquant", ...))
neither of which works. If all I want to do is to install the tidyquant package upon the R Session restart, how do I get it to work inside the Rprofile file? I am working in a corporate environment so that nightly all R Sessions are restarted. Therefore I have to use install.packages("tidyquant")