[Rd] Rprofile.site in Windows version

Duncan Murdoch murdoch at stats.uwo.ca
Sun Feb 10 04:02:58 CET 2008


On 09/02/2008 6:44 PM, Erich Neuwirth wrote:
> I think Rprofile.site as installed with R-2.6.2
> contains some misleading information.
> It contains the following lines
> 
> # set a CRAN mirror
> # local({r <- getOption("repos")
> #       r["CRAN"] <- "http://my.local.cran"
> #       options(repos=r)})'.
> 
> Uncommenting these lines and changing the URL
> will not work.
> 
> '. at the end of the last line will break the execution.

Yes, those shouldn't be there.

> Furthermore
> library(tools)
> needs to be run before these lines can be run.

Why?  local, getOption, and options are all in the base package.

Duncan Murdoch



More information about the R-devel mailing list