R did not return any output when queried for directory location information

0 views
Skip to first unread message

Sung Yoon

unread,
May 22, 2016, 12:16:04 AM5/22/16
to conda - Public

This must be Rstudio error, but it started after I installed mro with conda. So, I am hoping someone knows the answers.

On my Ubuntu 14.04, I keep getting this error. 3 hours on it & very annoying. I attempt to set & reset env variables.

"R did not return any output when queried for directory location information; Unable to determine R home directory"

:~$ env|grep "^R_*" |more ## Pls note that all env variables are on .profile
RSTUDIO_WHICH_R=/opt/anaconda/bin/R
R_LIBS=/opt/Rpkg
R_HOME_DIR=/opt/anaconda/lib64/R/
R_HOME=/opt/anaconda/lib/R
:~$ R

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
:~$ R --vanilla --slave -e "cat(paste(R.home('home'), R.home('share'), R.home('include'), R.home('doc'), sep = ':'))"
/opt/anaconda/lib/R:/opt/anaconda/lib/R/share:/opt/anaconda/lib/R/include:/opt/anaconda/lib/R/doc:~$ rstudio --rsession-which-r='/opt/anaconda/bin/R'
:~$ uname -a
Linux IQ007 3.13.0-86-generic #131-Ubuntu SMP Thu May 12 23:33:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linu

Thanks much in advance!

Sung Yoon

unread,
May 22, 2016, 2:58:27 AM5/22/16
to conda - Public
Just adding diagnostic info:
~$ rstudio --run-diagnostics
22 May 2016 06:01:04 [rdesktop] ERROR R did not return any output when queried for directory location information; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::detectRLocationsUsingR(const string&, rstudio::core::FilePath*, rstudio::core::FilePath*, rstudio::core::config_utils::Variables*, std::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:488
22 May 2016 06:01:04 [rdesktop] ERROR Unable to determine R home directory; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::detectRLocationsUsingScript(const rstudio::core::FilePath&, rstudio::core::FilePath*, rstudio::core::FilePath*, rstudio::core::config_utils::Variables*, std::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:432
Reply all
Reply to author
Forward
0 new messages