Re: [R] R and Vista

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Wed, 16 Jan 2008 11:10:40 -0500

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
>>
>

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 16 Jan 2008 - 16:13:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jan 2008 - 20:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive