我已经安装了Microsoft R Client。当我从shell运行R时,我得到了
Microsoft R Open 3.4.3
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2018 Microsoft
Loading Microsoft R Client packages, version 3.4.3.0097.
Microsoft R Client limits some functions to available memory.
See: https://go.microsoft.com/fwlink/?linkid=799476 for information
about additional features.
Type 'readme()' for release notes, privacy() for privacy policy, or
'RevoLicense()' for licensing information.
Using the Intel MKL for parallel mathematical computing (using 36 cores).
Default CRAN mirror snapshot taken on 2018-01-01.
See: https://mran.microsoft.com/.
但是,当我从Rstudio-server运行R时,我只得到
Microsoft R Open 3.4.3
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2017 Microsoft Corporation
Using the Intel MKL for parallel mathematical computing (using 36 cores).
Default CRAN mirror snapshot taken on 2018-01-01.
See: https://mran.microsoft.com/.
系统只有R的一个副本,并且它与库路径一起在rserver.conf
cat /etc/rstudio/rserver.conf
# Server Configuration File
rsession-which-r=/usr/bin/Revo64
rsession-ld-library-path=/opt/microsoft/rclient/3.4.3/libraries/RServer
在Rstudio R环境中,库路径在那里
>.libPaths()
[1] "/home/xyz/R/x86_64-pc-linux-gnu-library/3.4"
[2] "/opt/microsoft/rclient/3.4.3/runtime/R/library"
但是,RevoScaleR
不会自动加载。当我尝试手动加载时,我得到了
> library(RevoScaleR)
Fehler in library(RevoScaleR) : es gibt kein Paket namens ‘RevoScaleR’
任何人都知道可能出现的问题?
答案 0 :(得分:0)
Github的回答: https://github.com/rstudio/rstudio/issues/2455#issuecomment-375327109
设置
R_LIBS_SITE=/opt/microsoft/rclient/3.4.3/libraries/RServer
在
/opt/microsoft/rclient/3.4.3/runtime/R/etc/Renviron