I install ESS following these directions, adding these to ~/.emacs
:
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/"))
(package-initialize)
then typing M-x package-install RET ess RET
, and adding this to ~/.emacs
as well:
(require 'ess-site)
Now when I open an R file in Emacs, I get this message in a buffer:
Warning (flymake): Disabling backend ess-r-flymake because (error Cannot find program ’R’)
Warning (flymake): Disabling backend flymake-proc-legacy-flymake because (error Can’t find a suitable init function)
Warning (flymake): Disabling backend ess-r-flymake because (error Cannot find program ’R’)
Warning (flymake): Disabling backend flymake-proc-legacy-flymake because (error Can’t find a suitable init function)
and typing in the buffer with the R file is slower because of warnings from Flymake
.
I have also set the inferior R program as in this thread:
(setq inferior-ess-r-program "R")
But the result is the same.
How can I fix this?
inferior-ess-r-program
command. R works OK from the command line and is at/usr/local/bin/R
.