question

Jagsken-7566 avatar image
0 Votes"
Jagsken-7566 asked YutongTie-MSFT commented

unable to install AzureStor in R script in Azure ML Studio

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

Please let us know if you have more question, it will be helpful to accept the answer if you feel it helps. Thanks.


Regards,
Yutong

0 Votes 0 ·

1 Answer

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered YutongTie-MSFT edited

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.