From murdoch at stats.uwo.ca  Sun Feb 10 04:02:58 2008
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Sat, 09 Feb 2008 22:02:58 -0500
Subject: [Rd] Rprofile.site in Windows version
In-Reply-To: <47AE3AF8.4000906@univie.ac.at>
References: <47AE3AF8.4000906@univie.ac.at>
Message-ID: <47AE6962.30707@stats.uwo.ca>

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



[Rd] Rprofile.site in Windows version
Duncan Murdoch