[R] Setting Repositories in the .Rprofile file

David Winsemius dwinsemius at comcast.net
Mon Dec 7 18:39:06 CET 2009


On Dec 7, 2009, at 12:18 PM, Richardson, Patrick wrote:

> Is there any way to select (during startup) all repositories by  
> modifying the Rprofile.site file? If so, could someone let me know  
> the syntax to use (or direct me to where I can find it)?
>

?options

options(repos=c(CRAN = "http://lib.stat.cmu.edu/R/CRAN"  ) )

For my system after this I (still)  see:
 > getOption("repos")
                             CRAN
"http://lib.stat.cmu.edu/R/CRAN"

> Thank you,
>
> Patrick
-- 

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list