在 Microsoft R 客户端中找不到“RevoScaleR”

Cannot find ‘RevoScaleR’ in Microsoft R Client

我已经安装了 Microsoft R 客户端。当我从 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’

有人知道哪里出了问题吗?

来自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