This article covers the step-by-step instructions for installing the Azure ML SDK for R.
You do not need run this if you are working on an Azure Machine Learning Compute Instance, as the compute instance already has the Azure ML SDK preinstalled.
If you do not have Conda already installed on your machine, you will first need to install it, since the Azure ML R SDK uses reticulate to bind to the Python SDK. We recommend installing Miniconda, which is a smaller, lightweight version of Anaconda. Choose the 64-bit binary for Python 3.5 or later.
You will need remotes to install azuremlsdk from the GitHub repo.
Then, you can use the
install_github function to install the package.
If you are using R installed from CRAN, which comes with 32-bit and 64-bit binaries, you may need to specify the parameter
INSTALL_opts=c("--no-multiarch") to only build for the current 64-bit architecture.
If you would like to override the default version, environment name, or Python version, you can pass in those arguments:
You can confirm your installation worked by loading the library and successfully retrieving a run.
In step 3 of the installation, if you get ssl errors on windows, it is due to an outdated openssl binary. Install the latest openssl binaries from here.
If installation fails due to this error:
You will need to set your time zone environment variable to GMT and restart the installation process.
If the following permission error occurs while installing in RStudio, change your RStudio session to administrator mode, and re-run the installation command.
Downloading GitHub repo Azure/azureml-sdk-for-r@master Skipping 2 packages ahead of CRAN: reticulate, rlang Running `R CMD build`... Error: (converted from warning) invalid package 'C:/.../file2b441bf23631' In R CMD INSTALL Error in i.p(...) : (converted from warning) installation of package ‘C:/.../file2b441bf23631’ had non-zero exit status In addition: Warning messages: 1: In file(con, "r") : cannot open file 'C:...\file2b44144a540f': Permission denied 2: In file(con, "r") : cannot open file 'C:...\file2b4463c21577': Permission denied