title: Running R from Mac OSX terminal
body: <p>I've searched the web, and I'm still unclear on how to run R from the Mac terminal.  I have Rstudio and the standalone R app installed.  I thought I could just type &quot;R&quot; from the command line as I do with &quot;python&quot;, but that doesn't work.  Is it necessary to edit the PATH in my bash profile?  If so, how do I give the correct location of R?</p>
  <p>Thanks for any help</p>
  <h2>Edits after receiving comments</h2>
  <p>So, I'm running Sierra, and when I type &quot;r&quot; or &quot;R&quot; at the terminal, I get &quot;-bash: R: command not found.&quot;  If I type, &quot;which R&quot; in the terminal I do not get any output.</p>
  <p>Here is the output from &quot;echo $PATH&quot;: /usr/local/heroku/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/samuelcolon/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/samuelcolon/.rvm/gems/ruby-2.1.0/bin:/Users/samuelcolon/.rvm/gems/ruby-2.1.0@global/bin:/Users/samuelcolon/.rvm/rubies/ruby-2.1.0/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/samuelcolon/.rvm/bin:/Users/samuelcolon/.rvm/bin</p>
  <p>As for the installation, I believe I downloaded it directly from cran.r-project.org a while ago.  I can locate the GUI in my applications and open it--
  I have version 3.13.  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 &quot;R&quot; into the terminal?</p>
  <p>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.  I'm fine with removing and re-installing R if it's easiest to start from square one.  I hope the extra detail helps, and I appreciate the responses.</p>