Skip to content
Prev 13712 / 15075 Next

R CMD …

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