unable to install AzureStor in R script in Azure ML Studio

Jags ken 1 Reputation point
2021-04-25T14:43:41.37+00:00

I got this error when trying to install older version

0063: The following error occurred during evaluation of R script:
---------- Start of error message from R ----------
'AzureStor' is not a valid installed package

when tried to install newer version of zip downloaded from cran. then it was giving error can not read version 3

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,313 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,966 Reputation points Moderator
    2021-04-27T01:41:47.423+00:00

    Hello,

    Thanks for reaching out to us. Unfortunately, this is not supported in Azure Machine Learning studio (classic), to install packages that are not supported as part of default Azure ML studio you can upload them as zip. Here is an example of how to upload various R packages as a zip file dataset and installed them using install.packages() and library() to load them in the execute R script.

    You need to connect the .zip file dataset as script file bundle input.

    1427722

    Then in your execute R script install and load them.

    install.packages("src/XML_3.98-1.19.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/survival_2.44-1.1.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/parallelMap_1.3.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/data.table_1.12.2.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/checkmate_1.9.1.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/stringi_1.4.3.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/stats19_0.2.1.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/ggplot2_3.1.1.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/backports_1.1.3.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/BBmisc_1.11.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/ParamHelpers_1.12.zip",lib=".",repos=NULL, verbose = TRUE)
    install.packages("src/mlr_2.13.zip",lib=".",repos=NULL, verbose = TRUE)

    library(XML,lib.loc=".", verbose=TRUE)
    library(survival,lib.loc=".", verbose=TRUE)
    library(parallelMap,lib.loc=".", verbose=TRUE)
    library(data.table,lib.loc=".", verbose=TRUE)
    library(checkmate,lib.loc=".", verbose=TRUE)
    library(stringi,lib.loc=".", verbose=TRUE)
    library(stats19,lib.loc=".", verbose=TRUE)
    library(ggplot2,lib.loc=".", verbose=TRUE)
    library(backports,lib.loc=".", verbose=TRUE)
    library(BBmisc,lib.loc=".", verbose=TRUE)
    library(ParamHelpers,lib.loc=".", verbose=TRUE)
    library(mlr,lib.loc=".", verbose=TRUE)

    Your Zip file should be a zip of zips of all these packages as seen below.

    1427723

    Please note you cannot use plain R script as input to Script Bundle input port of Execute R script module.

    Regards,
    Yutong

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.