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. |