conda R (mro) Can't open /etc/ldpaths Error

0 views
Skip to first unread message

Sung Yoon

unread,
May 8, 2016, 11:37:38 AM5/8/16
to conda - Public
After dealing with many frustrated package installation prb. I decided to get rid of R-base in my Lubuntu 14.04 64bit
and did following. But now I have a new prb:

conda install -c mro r
/opt/anaconda/lib/R/library$ R
/opt/anaconda/bin/R: 207: .: Can't open /etc/ldpaths

could b ghost from the past, but when I use 
conda install -c r r
the R version goes back to 3.2.2 rather than 3.2.3-0 (mro), but it works.

Sung Yoon

unread,
May 8, 2016, 10:40:05 PM5/8/16
to conda - Public
Solved it by copying 3.2.2 R (conda install -c r r) from another machine. It's a script & I do not see a prb with doing it this way, but... 
Anyway done & over with. 
 

Sung Yoon

unread,
May 12, 2016, 10:44:28 AM5/12/16
to conda - Public
thanks to Ray Donnelly
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)
Reply all
Reply to author
Forward
0 new messages