Skip to content

R CMD …

3 messages · Peter West, Duncan Murdoch, Dr Eberhard W Lisse

#
I see a lot of references to R CMD on the command line. Can I assume that the R in question is the R executable in Contents > MacOS within R.app?

Peter


?
pbw at ehealth.id.au
?Those who are well have no need of a physician, but those who are sick.?
#
On 20/02/2021 10:04 a.m., Peter West wrote:
No.  The one that will run on the command line is the one returned by 
"which R".  On my system that's /usr/local/bin/R, which is a soft link 
to  /Library/Frameworks/R.framework/Resources/bin/R, a shell script.

The one you see is the GUI front end, and it doesn't understand the "R 
CMD ..." type of command.

You can run the shell script version from within the GUI using

system("R CMD ...")

Duncan Murdoch
#
That depends.

I would look for

	/usr/local/bin/r

or

	/usr/local/bin/R

one of them should have been symlinked by the PKG Installer. But then I
use homebrew without the graphic app (I like Rstudio, and TextMate is
also very, very good).


el
On 2021-02-20 17:04 , Peter West wrote:
[...]