I have an .RProfile file that I set up on my Mac Laptop. When I tried to save the file after coding it in BBEdit, the system objected, saying I must give it a name that doesn't begin with the dot. I saved it as RProfile.txt, the opened my Terminal window and did:
mv RProfile.txt .RProfile
Which worked.
Now I've tried to set the same thing up at school on PC's with Windows 7 and I haven't been successful yet. Again, the system objected to the .RProfile name. If I save it as RProfile.txt, what can I use to change the name to .RProfile? I tried changing the name in the folder directory, but again it objected.
Can someone help me on this issue?
Thanks.
Assuming you don't already have one, these files are easy to create. Open a text editor and name your blank file . Rprofile with no trailing extension and place it in the appropriate directory. After populating the file, you'll have to restart R for the settings to take affect.
On Windows, the file is in the C:\Program Files\R\R-n. n.n\etc directory. You can also place a . Rprofile file in any directory that you are going to run R from or in the user home directory.
Rprofile files live in the base of the user's home directory, and project-level . Rprofile files live in the base of the project directory. R will source only one . Rprofile file.
Customizing the startup environment allows you to set R options, specify a working directory, load commonly used packages, load user-written functions, set a default CRAN download site, and perform any number of housekeeping tasks. You can customize the R environment through either a site-initialization file (Rprofile.
Add a period at the end when titling it as in .Rprofile.
The end period will magically disappear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With