Well, this has been bugging me a lot since I started using R, customizing start-up mechanism at R. Here is a great site which gives pretty good instructions on setting this up.
http://scs.math.yorku.ca/index.php/Rprofile
With notepad I created a file named .Rprofile with file extension "all files". This is required because this is not a typical text even though you can open it with notepad. I put it in C:\R directory but you can put it in any directory you like but that has to be your startup directory. You can changes the startup directory by doing this: right-click on the R icon, select Properties, and then change the Start In field to C:\R
With those instructions there I changes the prompt in R from "> " to "R> " by putting the following line in my "C:\R\.Rprofile" file:
options(prompt="R> ")
I also had an long-standing issue where I had to always type my default library location. With .Rprofile this problem is gone. I simply add the following line in this .Rprofile file:
.libPaths("J:\\Rushad\\MOF\\R-stuff\\library")
The location of the directory above is my computer specification. It will differ from user to user.
http://scs.math.yorku.ca/index.php/Rprofile
With notepad I created a file named .Rprofile with file extension "all files". This is required because this is not a typical text even though you can open it with notepad. I put it in C:\R directory but you can put it in any directory you like but that has to be your startup directory. You can changes the startup directory by doing this: right-click on the R icon, select Properties, and then change the Start In field to C:\R
With those instructions there I changes the prompt in R from "> " to "R> " by putting the following line in my "C:\R\.Rprofile" file:
options(prompt="R> ")
I also had an long-standing issue where I had to always type my default library location. With .Rprofile this problem is gone. I simply add the following line in this .Rprofile file:
.libPaths("J:\\Rushad\\MOF\\R-stuff\\library")
The location of the directory above is my computer specification. It will differ from user to user.
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন