[R] .Rprofile under Windoze.
Nordlund, Dan (DSHS)
NordlDJ at dshs.wa.gov
Thu Aug 31 01:35:04 CEST 2006
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-
> bounces at stat.math.ethz.ch] On Behalf Of Rolf Turner
> Sent: Wednesday, August 30, 2006 2:50 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] .Rprofile under Windoze.
>
> 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?
>
<<<snip>>>
Rolf,
Whether an extension is automagically added (and if so what) is usually a
function of the program writing the file out. In MS Windows programs, there
is usually an option in the Save/SaveAs menu called something like "Save As
Type". To save without an extension you want to make sure that the value is
'All Files (*.*)', otherwise the program will usually tag on a default
extension.
Hope this is helpful,
Dan
Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services
Olympia, WA 98504-5204
More information about the R-help
mailing list