[R] .Rprofile under Windoze.

From: Rolf Turner <rolf_at_erdos.math.unb.ca>
Date: Thu 31 Aug 2006 - 07:49:47 EST

I am (for my sins) having to do some work using R under Windoze. I wanted to set up a .Rprofile to control my set-up. The docs on .Rprofile say that it can/should be placed in ``the user's home directory''. ``An Introduction to R'' observes lucidly that this concept needs to be clarified under Windoze.

Following the suggestions in An Introduction to R, I tried putting a .Rprofile in

        "C:\Documents and Settings\rolf\My Documents"

When that didn't work, I tried putting it in the starting directory (and confirmed that I'd got that right by checking with getwd() and list.files(all.files=TRUE) ).

The last invocation indicated that the name of the file was *really* ``.Rprofile.txt'' --- although I'd tried to save it as (simply) ``.Rprofile''. Is that the problem? If so, how can I persuade Windoze NOT to stick that damned .txt tag on the end? (Gawd, but I ***hate*** Windoze!!!) If that's not the problem, can you suggest what *is* the problem?

All that .Rprofile(.txt) has in it at the moment is

        options(prompt="Wheee! ")

so that I can easily tell whether it's working. If I execute

> source(".Rprofile.txt")

the prompt does indeed get changed to ``Wheee! '' as it should.

I would appreciate enlightenment. Ta.


					Rolf Turner

R-help@stat.math.ethz.ch 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 Thu Aug 31 07:56:20 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 31 Aug 2006 - 12:22:47 EST.

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