To learn where the R files are that are being accessed - in Terminal after starting R, and in R.app, type: I can only assume that with a fresh install of the latest R, R will work for you in Terminal. However it will not update an installation of R installed by the anaconda package. To my understanding, reading support docs, if you have an older version of R it will update that. I found this latest install version 3.4.0 installs R for access in Terminal, and also installs R.app as part of the package. I have done a fresh update install of R from the R.org cran site as part of seeking an answer to your question. I hope the extra detail helps, and I appreciate the responses.Īn answer for those not that familiar with Terminal and Bash. I'm fine with removing and re-installing R if it's easiest to start from square one. Generally, I've been working in RStudio, but I'd still like to access R from the terminal and also to find where things are located. Is it possible, I only have R.app installed but not R? Perhaps that's the reason I'm getting the 'command not found' when typing "R" into the terminal? I can locate the GUI in my applications and open it. Here is the output from "echo $PATH": for the installation, I believe I downloaded it directly from a while ago. So, I'm running Sierra, and when I type "r" or "R" at the terminal, I get "-bash: R: command not found." If I type, "which R" in the terminal I do not get any output. Thanks for any help Edits after receiving comments Is it necessary to edit the PATH in my bash profile? If so, how do I give the correct location of R? I thought I could just type "R" from the command line as I do with "python", but that doesn't work. I have Rstudio and the standalone R app installed. I've searched the web, and I'm still unclear on how to run R from the Mac terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |