Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving a file as .RProfile in windows

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.

like image 336
David Avatar asked Feb 22 '15 23:02

David


People also ask

How do I create an Rprofile file?

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.

Where is .rprofile located windows?

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.

Where is the .rprofile file?

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.

What is customize startup?

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.


1 Answers

Add a period at the end when titling it as in .Rprofile. The end period will magically disappear.

like image 82
Tyler Rinker Avatar answered Sep 23 '22 22:09

Tyler Rinker