I am using R version 3.4.4 on Ubuntu 17.10, even though R works I am unable to start RStudio.
Diagnostics report
12 Apr 2018 16:38:58 [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::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:483
12 Apr 2018 16:38:59 [rdesktop] ERROR system error 71 (Protocol error) [description=Unable to parse version from R, version-info=, r-error=Fatal error: unable to open the base package
]; OCCURRED AT: rstudio::core::Error rstudio::core::r_util::rVersion(const rstudio::core::FilePath&, const rstudio::core::FilePath&, const string&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:784; LOGGED FROM: bool rstudio::core::r_util::detectREnvironment(const rstudio::core::FilePath&, const rstudio::core::FilePath&, const string&, std::__cxx11::string*, std::__cxx11::string*, rstudio::core::r_util::EnvironmentVars*, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:678
Using R script: /home/kishore/software/R/R-3.4.3/bin/R
Attempting to launch R session...
RSTUDIO_WHICH_R=/home/kishore/software/R/R-3.4.3/bin/R
R_HOME=/home/kishore/software/R/R-3.4.3/lib/R
R_DOC_DIR=/home/kishore/software/R/R-3.4.3/lib/R/doc
R_INCLUDE_DIR=/home/kishore/software/R/R-3.4.3/lib/R/include
R_SHARE_DIR=/home/kishore/software/R/R-3.4.3/lib/R/share
LD_LIBRARY_PATH=/home/kishore/software/R/R-3.4.3/lib/R/lib::/lib:/usr/local/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
PATH=PATH=/usr/local/src/R:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/kishore/Documents/tools/geckodriver-v0.19.0-linux64/
HOME=/home/kishore
R session launched, attempting to connect on port 20169...
12 Apr 2018 16:38:59 [rsession-kishore] ERROR R SUICIDE: unable to open the base package
; LOGGED FROM: void {anonymous}::rSuicide(const string&) /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:1023
Connected to R session, attempting to initialize...
QApplication::qAppName: Please instantiate the QApplication object first
How do I change the path where R studio is looking , for example RSTUDIO_WHICH_R=/home/kishore/software/R/R-3.4.3/bin/R to new place where I manually installed R 3.4.4
Thanks for your help !!