Mac版本的Microsoft R Open上未安装mrsdeploy软件包

时间:2018-10-10 01:50:35

标签: r microsoft-r

我需要mrsdeploy软件包才能远程部署到Microsoft R Server。我在安装了Microsoft R Open的本地Windows计算机上工作。但是,我已经搬到Mac上,并在上面安装了Microsoft R Open,从我阅读的内容来看,它似乎应该上面已经装有mrsdeploy软件包,但是没有,并且我找不到可以从中获得回购的仓库。如何在Mac的R版本上安装mrsdeploy软件包?

详细信息:

启动消息:         R版本3.5.1(2018-07-02)-“羽毛喷雾”         版权所有(C)2018 The R Foundation for Statistical Computing         平台:x86_64-apple-darwin15.6.0(64位)

    R is free software and comes with ABSOLUTELY NO WARRANTY.
    You are welcome to redistribute it under certain conditions.
    Type 'license()' or 'licence()' for distribution details.

      Natural language support but running in an English locale

    R is a collaborative project with many contributors.
    Type 'contributors()' for more information and
    'citation()' on how to cite R or R packages in publications.

    Type 'demo()' for some demos, 'help()' for on-line help, or
    'help.start()' for an HTML browser interface to help.
    Type 'q()' to quit R.

    Microsoft R Open 3.5.1
    The enhanced R distribution from Microsoft
    Microsoft packages Copyright (C) 2018 Microsoft Corporation

    Multithreaded BLAS/LAPACK libraries detected. Using 4 cores for math algorithms.

    Default CRAN mirror snapshot taken on 2018-08-01.
    See: https://mran.microsoft.com/.

    [R.app GUI 1.70 (7405) x86_64-apple-darwin15.6.0]

会话信息:

  

sessionInfo()

    R version 3.5.1 (2018-07-02)
    Platform: x86_64-apple-darwin15.6.0 (64-bit)
    Running under: macOS High Sierra 10.13.5

    Matrix products: default
    BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    LAPACK: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib

    locale:
    [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

    other attached packages:
    [1] RevoUtils_11.0.1

    loaded via a namespace (and not attached):
    [1] compiler_3.5.1 tools_3.5.1   

已安装的软件包:

    ip <- as.data.frame(installed.packages()[,c(1,3:4)])
    rownames(ip) <- NULL
    ip <- ip[is.na(ip$Priority),1:2,drop=FALSE]
    print(ip, row.names=FALSE)

        Package Version
     checkpoint   0.4.4
           curl     3.2
     doParallel  1.0.13
        foreach   1.5.0
      iterators  1.0.10
       jsonlite     1.5
     MicrosoftR 3.5.1.3
            png   0.1-7
             R6   2.2.2
        RevoIOQ  10.0.0
       RevoMods  11.0.1
      RevoUtils  11.0.1
          RUnit  0.4.26

2 个答案:

答案 0 :(得分:2)

AFAIK,mrsdeploy不包含在Microsoft R Open中。 This page掌握了一些分发信息。除此之外,它也是Microsoft R Client的一部分。不幸的是,Microsoft R Client不适用于Mac,仅适用于Windows和Linux。

答案 1 :(得分:1)

正如@nielsberglund指出的那样,Microsoft R Client仅适用于Windows和Linux。我以为Microsoft R Open安装会为此程序包提供客户端,但是我错了(https://mran.microsoft.com/download)。

我的解决方案是执行以下操作:

运行R时,我需要一个mrsdeploy软件包。为了使此工作有效,您可能必须使用端口进行更多的VM配置,并且需要将脚本推送到VM或共享实时使用脚本的目录。

我的目的是减轻重量,并根据上面链接中的安装说明将Dockerfile放在一起。对于任何可以运行Docker并能够使用R Open Client的人来说,这都是一个可移植的解决方案。

# Install as root or sudo
sudo su

# If your system does not have the https apt transport option, add it now
apt-get install apt-transport-https

# Set the package repository location containing the R Client distribution. 
# On Ubuntu 14.04.
# wget http://packages.microsoft.com/config/ubuntu/14.04/prod/packages-microsoft-prod.deb 
# On Ubuntu 16.04.
wget http://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb 

# Register the repo.
dpkg -i packages-microsoft-prod.deb

# Check for microsoft-prod.list configuration file to verify registration.
ls -la /etc/apt/sources.list.d/

# Update packages on your system
apt-get update

# Install the packages
apt-get install microsoft-r-client-packages-3.4.3

# List the packages
ls /opt/microsoft/rclient/