I am a beginner in R. I use Rstudio on my MAC OSX.
I have no idea what does this mean 'create a folder ~/.R and put a Makevars in it.'
I went word by word and tried creating '.R' in my home(~) directory. MAC doesnt allow it saying "You can’t use a name that begins with a dot “.”, because these names are reserved for the system. Please choose another name." ( of course!)
Next I tried to look for .R folder, hoping that it might already be there. But couldn't find it anywhere.
Can anyone please explain where is this '.R' folder on our system? Or how is the whole R folder hierarchy is built.
I tried doing this:
path2 = normalizePath("~/.R")
Warning message:
In normalizePath("~/.R") : path[1]="/Users/as82986/.R": No such file or directory
setwd(path2)
Error in setwd(path2) : cannot change working directory
Problem is I couldn't even find anything on google because looking for '.R' folder threw pretty vague and unrelated results.
Also, would appreciate if I am not directed to any more documentations. Please. And thank you so much for helping me.
R is always pointed at a directory on your computer. You can find out which directory by running the getwd (get working directory) function; this function has no arguments. To change your working directory, use setwd and specify the path to the desired folder.
Most people are familiar with command-f for searching through files; shift-command-f launches a window to search through files. You can also customize the search type for certain extensions, or to exclude stuff like . html or . md which hides duplicate results if you work with a lot of knitr.
If you did not create a shortcut above then you will need to locate the “rstudio.exe” file inside the “RStudio/bin” folders inside the folder you chose to install RStudio in. On my computer, for example, this file is inside of “C:/apps/RStudio/bin”.
You need to use the Terminal.app to open a Unix console and then type:
$ mkdir ~/.R
The dollar sign is there to remind you that this is not the R console which has a ">" prompt. (Do not type the "$".) You are going to need to learn a few more lessons about the Unix commands if you plan to compile packages from source. I generally run my Finder with ShowAllFiles
set to Yes
. Do a google search if that is not meaningful to you.
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