Skip to content
Prev 32846 / 398513 Next

libraries in .First

If this is R 1.7.0, the preferred mechanism is options("defaultPackages"), 
as in the following (from the examples in .First)

     # Example of Rprofile.site
     local({
       old <- getOption("defaultPackages")
       options(defaultPackages = c(old, "MASS"))
     })

.First is run too early to be loading packages.

Oh, and the preferred way to set the browser is environmental variable
R_BROWSER, usually in R_HOME/etc/Renviron{.site}.
On Tue, 3 Jun 2003, Laurie Sindlinger wrote: