Search code examples
razureloadr-caretazure-machine-learning-service

Caret package in Microsoft Azure ML


I want to load caret library in Azure ML. This works when R version is set to be CRAN R 3.1.0, but on Microsoft R Open 3.2.2 won't work. I must use R Open version because of the other packages that I'm using in my project, which are not supported in that earlier version 3.1.0. Therefore, the question is how to load this library on ML Azure using Microsoft R Open 3.2.2?

Thanks!


Solution

  • From one of your comments above, it sounds like the version of the caret package you've used requires an R version >3.1.2. I recommend using an older version of the package: the caret binary from this 3.1 archive (6.0-68) worked for me. I used these statements to load the package:

    install.packages("src/caret_6.0-68.zip", lib=".", repos= NULL, verbose=TRUE)
    library("caret", lib.loc=".", verbose=TRUE)