Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 3
    use Rscript yourscript.R Commented Jun 2, 2017 at 19:47
  • 1
    It depends where/how you installed it. If you used homebrew, it will be /usr/local/bin/Rscript your script.R Commented Jun 2, 2017 at 20:08
  • 1
    I can launch R in terminal with either r or R, that is, both upper- and lowercase command work. Try which R. What does it return? And are you under Sierra? I had some problems with R after I upgraded to Sierra and then upgraded R. Commented Jun 2, 2017 at 21:32
  • 1
    You have provided no information that will enable folks to help you. R runs fine on macOS both at the app and terminal levels. Where did you get R from? How did you install it? What does your PATH look like? Did you look to see if it is in /Library/Frameworks/R.framework/Resources/bin/R and if there's a symlink to /usr/local/bin/R? RStudio likely found it (you did not mention that key fact, though). Where does it say R is? Commented Jun 3, 2017 at 10:33
  • @hrbrmstr I agree with hrbrmstr's comments sjc725. Would you kindly add more details to your question by clicking the "edit" word below your question. Add what you can. Are you entering R in Terminal or the other apps would help me understand better. If you have R working now, do let others know so we know your issue is solved. Commented Jun 3, 2017 at 12:03