[R] R and Vista
Duncan Murdoch
murdoch at stats.uwo.ca
Wed Jan 16 17:10:40 CET 2008
On 1/16/2008 10:53 AM, Marcia Rocha wrote:
> Hello Duncan,
> Thank you for your answer.
> I get a very strange path on my R.home():
> " C:\\PROGRA~2\\R\\R-25~1.0"
> And the command
> readLines(C:\\PROGRA~2\\R\\R-25~1.0\etc\Rprofile.site) returns an Error (a
> syntax one, I triple checked the syntax...)
> Would you know what this means?
The error is about the single backslashes (I used forward slashes,
because that's what R uses internally), and the lack of quotes. You
should try
readLines("C:\\PROGRA~2\\R\\R-25~1.0/etc/Rprofile.site")
However, I'm guessing based on your path that you're using R 2.5.x. I'd
upgrade to 2.6.1 if you can; it has had some things fixed to deal with
Vista.
Duncan Murdoch
> Thank you agian,
> Marcia
>
>
>
> On Jan 16, 2008 4:36 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
>
>> On 1/16/2008 10:19 AM, marciarr wrote:
>> > Hello R users,
>> > I have been using R for a while on xp and have just updated my system to
>> > vista. Have encountered some problems... First and main problem is that
>> i
>> > cannot make R recognize my own written functions by coping them into the
>> > Rprofile.site on the etc folder. For some reason, this very useful tool
>> > seems not to be working anymore. Could someone help?? Any other
>> suggestion
>> > to make R start with my functions?
>>
>> What does the command
>>
>> R.home()
>>
>> print in an R session on your system? Can you add "/etc/Rprofile.site"
>> to the end, and read the file? For example, on my system I see
>>
>> > R.home()
>> [1] "F:\\R\\R-2.6.1"
>>
>> and see
>>
>> > readLines("F:\\R\\R-2.6.1/etc/Rprofile.site")
>> [1] "# Things you might want to change"
>>
>> [2] ""
>>
>> [3] "# options(papersize=\"a4\")"
>>
>> [4] "# options(editor=\"notepad\")"
>>
>>
>> [ remaining lines deleted ]
>>
>> Duncan Murdoch
>>
>
More information about the R-help
mailing list