[R] Saving/loading custom R scripts
Jakson A. Aquino
jaksonaquino at gmail.com
Thu Sep 9 18:28:27 CEST 2010
On Thu, Sep 9, 2010 at 1:14 PM, Joshua Wiley <jwiley.psych at gmail.com> wrote:
> On Thu, Sep 9, 2010 at 7:05 AM, Bos, Roger <roger.bos at rothschild.com> wrote:
>> Josh,
>>
>> I liked your idea of setting the repo in the .Rprofile file, so I tried it:
>>
>> r <- getOption("repos")
>> r["CRAN"] <- "http://cran.stat.ucla.edu"
>> options(repos = r)
>> rm(r)
I couldn't understand why to use 4 lines of code... You could try this:
options(repos = "http://cran.stat.ucla.edu")
More information about the R-help
mailing list