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"
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
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
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
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
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?
>
>
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
7 matches
Mail list logo