This guide covers known issues and troubleshooting for using R in Azure Machine Learning.
The list will continue to evolve as new issues are discovered and old ones are resolved.
For issues with installing the azuremlsdk package, please refer to the troubleshooting section of the installation guide.
The following address issues when developing in R on a Compute instance using RStudio or Jupyter.
There will usually be a lag in between the latest release of the azuremlsdk package to CRAN and when the package version is updated on the compute instance. You can determine what version of the SDK you have by running
Right now, the latest version of the package on CRAN is 0.6.85, but the version on the compute instance is 0.5.7, which we are currently in the process of updating. Version 0.6.85 includes Azure ML Datasets functionality and several bug fixes, so if you need to access those immediately you can update the version yourself:
If you are using version 0.5.7 and see some variation of the following error messages, you are likely running into a bug that is fixed with the 0.6.85 release, and you should follow the above guidance to update the SDK.
Error: Python module azureml was not found.
AttributeError: module 'azureml' has no attribute 'core'
You may run into an error installing R packages from Jupyter using the R kernel, even though the same installation works from RStudio. The error will look as follows:
Installing package into '/usr/local/lib/R/site-library' (as 'lib' is unspecified) Warning message in install.packages(<package name>): "'lib = "/usr/local/lib/R/site-library"' is not writable"
The discrepancy is due to RStudio assuming a different default library location than the R kernel in Jupyter.
You can work around this by specifying a library location you have permission to such as the home directory “/home/azureuser/R”.
install.packages("<package name>", lib="/home/azureuser")
.libPaths()at the beginning of your notebook to tell Jupyter where your packages are:
An alternative is to give yourself access to the default folder by running a
chown command from the terminal.
If the following error occurs when submitting an experiment using RStudio:
Error in py_call_impl(callable, dots$args, dots$keywords) : PermissionError: [Errno 13] Permission denied
Move the files for your project into a subdirectory and reset the working directory to that directory before re-submitting.
In order to submit an experiment, the Azure ML SDK must create a .zip file of the project directory to send to the service. However, the SDK does not have permission to write into the .Rproj.user subdirectory that is automatically created during an RStudio session. For this reason, the recommended best practice is to isolate project files into their own directory.
For information on troubleshooting web service deployment issues, see the “Troubleshooting section” of the Deploying models guide.
You may hit resource quota issues, such as the error below:
Operation could not be completed as it results in exceeding approved Total Regional Cores quota.
For information on quotas, see Manage and request quotas for Azure resources.