Rstudio crashing upon opening

crash-report
ide-issue

#1

Hi, im having issues getting Rstudio up and running on my computer running Mint18.3.
I'm pretty new to linux, so let me know anything else I may need to add to these details (and how to go about
retrieving them)

When I attempt to run Rstudio the following pops up:
The R session had a fatal error.

This error was very likely caused by R attempting to load packages from a different incompatible version of R on your system. Please remove other versions of R and/or remove environment variables that reference libraries from other versions of R before proceeding.

ERROR r error 4 (R code execution error) [errormsg=Error in file(filename, "r", encoding = encoding) :

6 arguments passed to .Internal(file) which requires 5

]; OCCURRED AT: rstudio::core::Error rstudio::r::exec::evaluateString(const string&, SEXPREC**, rstudio::r::sexp::Protect*) /home/ubuntu/rstudio/src/cpp/r/RExec.cpp:302

sessionInfo in R terminal outputs the following:

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 18.3

Matrix products: default
BLAS: /usr/local/lib/R/lib/libRblas.so
LAPACK: /usr/local/lib/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8    
 [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8   
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler

#2

Hi Scott, have you tried uninstalling and re-installing R and RStudio?

Additionally, the RStudio Desktop state directory might have useful info about the source of the error:


#3

Hi,
I had already done a couple clean reinstall, forgot to mention that.
The rstudio desktop directory is as follows:
ctx folder: empty
log folder: rdesktop.log rsession-scott.log
monitored folder -> user-settings folder -> user-setting file
project setting folder: empty
sessions folder -> active folder: empty

rdesktop.log:

16 Jul 2018 19:32:19 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:32:19 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:32:59 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:33:00 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:34:31 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:34:32 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:36:54 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:36:55 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:46:08 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:46:09 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:49:25 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:49:25 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:56:05 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:56:06 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 20:03:17 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 20:03:18 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 20:04:42 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
16 Jul 2018 20:04:57 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
16 Jul 2018 20:06:59 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 17:25:59 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 17:52:35 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 17:54:43 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 18:17:25 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 18:17:35 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 18:25:13 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 22:36:54 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 23:25:24 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
03 Aug 2018 16:15:32 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
03 Aug 2018 16:15:42 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288

rsession-scott.log:

16 Jul 2018 19:32:19 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:32:19 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:32:59 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:33:00 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:34:31 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:34:32 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:36:54 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:36:55 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:46:08 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:46:09 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:49:25 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:49:25 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 19:56:05 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 19:56:06 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 20:03:17 [rdesktop] ERROR Unable to find libR.so in expected locations within R Home directory /usr/local/lib/R; 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:537
16 Jul 2018 20:03:18 [rdesktop] ERROR R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?; LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateREnvironment(const EnvironmentVars&, const rstudio::core::FilePath&, std::__cxx11::string*) /home/ubuntu/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:361
16 Jul 2018 20:04:42 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
16 Jul 2018 20:04:57 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
16 Jul 2018 20:06:59 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 17:25:59 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 17:52:35 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 17:54:43 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 18:17:25 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 18:17:35 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 18:25:13 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 22:36:54 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
02 Aug 2018 23:25:24 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
03 Aug 2018 16:15:32 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288
03 Aug 2018 16:15:42 [rdesktop] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) /home/ubuntu/rstudio/src/cpp/desktop/DesktopNetworkReply.cpp:288

user-settings:
contextIdentifier="8CDC3C25"


#4

Did you build R from source yourself? If so, you need to instruct R to build with a shared library libR.so. See https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Configuration-options for more details. In particular, you need to configure R with --enable-R-shlib.


#5

Thanks for that, got it working!
I hadn't install R from source, i had just used:
sudo apt-get r-base r-base-dev etc...
A clean reinstall from tar.gz with your recommendations worked.