RStudio 2022.07 does not bother with R_ARCH on my linux machine, however, with RStudio 2012.12 and RStudio 2013.03 I encounter the problem that R_ARCH is set incorrectly, namely:
> Sys.getenv() [...] R_ARCH 64 R_BROWSER /usr/bin/firefox [...]
When I start R from the command line, the output is:
> Sys.getenv() [...] R_ARCH /64 R_BROWSER /usr/bin/firefox [...]
Interestingly, on Windows machine the output is:
> Sys.getenv() [...] R_ARCH /x64 R_BROWSER /usr/bin/firefox [...]
Why are the recent version of RStudio importing R_ARCH incorrectly from the environment that R generates on linux boxes, i.e. without the leading '/'? This makes it impossible to install any packages from source (which is pretty much the default on linux boxes).
I could not find a solution for this problem online. Does anybody now how to get RStudio to set/import R_ARCH correctly on linux machines?
Thanks in advance.