Re: [R] Setting up a .Rprofile file

2017-03-24 Thread Henrik Bengtsson
R for Windows is a bit peculiar where it locates your .Rprofile file, or rather what it consider to be your home directory. If you look from within R, the file you do want to create / edit is: > f <- normalizePath("~/.Rprofile", mustWork = FALSE) > f [1] "C:\\Users\\joe\\Documents\\.Rprofile"

Re: [R] Setting up a .Rprofile file

2017-03-24 Thread Bert Gunter
Inline. Cheers, Bert On Fri, Mar 24, 2017 at 2:36 AM, Bruce Ratner PhD wrote: > Henrico: > Thanks for quick reply. > However, one last question: > If I want to change working directory, and put setwd() in the Rprofile file, > logically R will not know where the be work

Re: [R] Setting up a .Rprofile file

2017-03-24 Thread Bruce Ratner PhD
Henrico: Thanks for quick reply. However, one last question: If I want to change working directory, and put setwd() in the Rprofile file, logically R will not know where the be work directory is, correct? So, should I install R in my preferred working directory? Thanks again, in advance. Bruce

Re: [R] Setting up a .Rprofile file

2017-03-24 Thread Jeff Newmiller
OP is on some variant of MSWindows, which doesn't use a Bash shell, so the syntax of that example is a bit foreign, Enrico. I would say that the concept of using .Rprofile to change directories is ill-advised, since having ALL of your R work in one place is not sustainable. However you can

Re: [R] Setting up a .Rprofile file

2017-03-24 Thread Enrico Schumann
On Fri, 24 Mar 2017, Bruce Ratner PhD writes: > Henrico: > Thanks for quick reply. > However, one last question: > If I want to change working directory, and put setwd() in the Rprofile > file, logically R will not know where the be work directory is, > correct? > > So, should I install R in my

Re: [R] Setting up a .Rprofile file

2017-03-24 Thread Enrico Schumann
On Thu, 23 Mar 2017, Bruce Ratner PhD writes: > Hi R'ers: > I would like to setting up a .Rprofile file with > setwd("C:/R_WorkDir") > set.seed(12345) > options (prompt "> R ") > > --- > Can you help providing the code or instructive link, > I've find many links, but I can't figure it out? > >

[R] Setting up a .Rprofile file

2017-03-24 Thread Bruce Ratner PhD
Hi R'ers: I would like to setting up a .Rprofile file with setwd("C:/R_WorkDir") set.seed(12345) options (prompt "> R ") --- Can you help providing the code or instructive link, I've find many links, but I can't figure it out? Thanks. Bruce __ Bruce Ratner PhD The Significant