echo $R_HOME
:/opt/anaconda/bin$ export R_HOME=/opt/anaconda/lib/R (just put it in /opt/anaconda/lib/R file)
:/opt/anaconda/bin$ ./R_r (This is what I renamed to)
R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
...
Microsoft R Open 3.2.3
Default CRAN mirror snapshot taken on 2016-01-01
The enhanced R distribution from Microsoft
about additional features.
No performance acceleration libraries were detected. To take advantage of
the available processing power, also install MKL for MRO 3.2.3. Visit
.Rprofile: Setting CRAN to SNU repository
solved the problem, but doc should really reflect this (it almost does but not really)
I also found that cat statement produces problem when compiling a package.
if (interactive()) { cat(".Rprofile: Setting CRAN to SNU repository\n") }
Seriously, after 20+ years into R/S+ development, user has to search this up?
Anyway, thank u much Ray!
export R_HOME=~/Anaconda/envs/my_r_env/lib/R for Linux (which left me bit confused & it was OSX instructions)