Skip to content
Prev 43389 / 63424 Next

Best way to locate R executable from within R?

On Tue, May 22, 2012 at 11:39 AM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
Thanks, I overlooked this need.  For my particular use case, I'm
interested in launching R in "batch" mode, so "R" will do (but not
"Rgui").
FYI, R.home("bin") is not the same as file.path(R.home(), "bin"), cf.
help("R.home").  R.home("bin") will pick up the current architecture
directory (by using .Platform$r_arch), e.g.
[1] "C:/PROGRA~1/R/R-2.15.0patched/bin/x64"

/Henrik