Package ‘AzureML’ is not available In R

Nikhil Bokade 1 Reputation point
2021-02-04T13:07:17.05+00:00

Dear Sir/ Madam,
I was trying to Integrate Azure ML Model(classic) with Power BI using R script and I was running following code.
[
wsid = ""
auth = ""
serviceName = "Name of Exp"

was trying to install AzureML but it shows the error attached in the picture.

library("AzureML")

ws <- workspace(wsid, auth)
ds <- consume(services(ws, name = serviceName),dataset)
ds <- data.frame(ds,dataset)
]

I tried different version of R but it is giving me the same error, Please Help.

63939-screenshot-38.png

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

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,236 Reputation points
    2021-02-08T16:01:28.457+00:00

    Hello,
    Thanks for reaching out to us. Please make sure you are following below steps to install the enviorment.

    Install Conda
    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.

    Install the azuremlsdk R package
    The stable release of the Azure ML SDK can be installed from CRAN or the development version can be installed from GitHub. You will need remotes to install the azuremlsdk package.

    install.packages('remotes')
    

    Then, you can use the install_github or install_cran functions to install the package.

    remotes::install_github('https://github.com/Azure/azureml-sdk-for-r')
    
    remotes::install_cran('azuremlsdk', repos = 'https://cloud.r-project.org/')
    

    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.

    remotes::install_cran('azuremlsdk', repos = 'https://cloud.r-project.org/', `INSTALL_opts=c("--no-multiarch"))`
    

    https://azure.github.io/azureml-sdk-for-r/articles/installation.html

    Please do let me know if you still have issue.

    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.