我已经安装了 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’
有人知道可能出了什么问题吗?