For a project I want to run in RStudio Cloud, I tried to install a package from github, i.e.
# install.packages("remotes") remotes::install_github("euctrl-pru/trrrj")
I ended up with an error message that the package ssh is not installed. Installing ssh delivered the following error message pointing to libssh and path configuration. As a mid-level R&Studio-user and novice user of RStudio Cloud, I have reached my limits here.
Can anybody help?
How can/could I install the required ssh package and supporting libssh or how can I configure the PKG_CONFIG_PATH environment variable,etc.?
Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'http://package-proxy/src/contrib/ssh_0.6.tar.gz'
Content type 'application/x-gzip' length 1048187 bytes (1023 KB)
downloaded 1023 KB
- installing source package ‘ssh’ ...
** package ‘ssh’ successfully unpacked and MD5 sums checked
** using staged installation
Package libssh was not found in the pkg-config search path.
Perhaps you should add the directory containing `libssh.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libssh' found
./configure: 33: ./configure: [[: not found
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libssh was not found. Try installing:
- deb: libssh-dev (Debian, Ubuntu, etc)
- rpm: libssh-devel (Fedora, EPEL)
- brew: libssh (OSX)
If libssh is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libssh.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
ERROR: configuration failed for package ‘ssh’
- removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/ssh’
Warning in install.packages :
installation of package ‘ssh’ had non-zero exit status
The downloaded source packages are in