Install R Packages in Azure ML

前端 未结 3 1079
不思量自难忘°
不思量自难忘° 2021-01-15 04:05

Its my 1st time using Azure ML and I am having a rough time. I need to install multiple R packages that are not provided by default in Azure

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-15 04:29

    Unfortunately yes. You can do 2 things.

    1. First figure out which of the dependencies are already installed in azureml. See this blogpost

      Use Execute R script task in AML studio and copy paste the below script:

      out <- data.frame(installed.packages(,,,fields=”Description”))
      maml.mapOutputPort(“out”)
      
    2. Collect all depended packages (imports and linkingto) and add these to the zip file (in the correct order) and follow the information in the blogpost you linked to.

    I use option 1, since that limits the amount of packages needed. But be aware of version differences on azureML and cran.

提交回复
热议问题