[R] Rprofile.site

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Nov 7 10:04:07 CET 2006


On Tue, 7 Nov 2006, Uwe Ligges wrote:

>
>
> Xiaodong Jin wrote:
>> How to make it correct?
>>   [1]
>>   Error in parse(file, n = -1, NULL, "?") : syntax error at
>> 1: {\
>>   #source('c:/Documents and Settings/xxxxxxx/My Documents/Archives/R/test.r')
>>   #source("c:\\Documents and Settings\\xxxxxxx\\My Documents\\Archives\\R\\test.r")
>
>
> Can you please show us all the lines of our file, we cannot make
> suggestions from the lines you are showing ...

In particular, this seems to be indicating an error in the file test.r, 
which you are not showing us.  Note that executing code in Rprofile.site 
is warned against in ?Startup, so this looks inadvisable usage.

>
> Uwe Ligges
>
>
>>   [2]
>>   Error in file(file, "r", encoding = encoding) :
>>         unable to open connection
>> In addition: Warning message:
>> cannot open file 'c:Documents and Settings
>> bkcjsvMy DocumentsArchivesH606R est.r', reason 'Invalid argument'
>>
>>   #source("c:\Documents and Settings\xxxxxxx\My Documents\Archives\R\test.r")

That is FAQ Q7.8.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list