none
FailedToEvaluateRScript RRS feed

  • Question

  • I am trying to publish web service from R studio using the following code 

    however I am getting the following error in AzureML: 

    FailedToEvaluateRScript: The following error occurred during evaluation of R script: R_tryEval: return error: Error: bad restore file magic number (file may be corrupted) -- no data loaded , Error code: LibraryExecutionError, Http status code: 400, Timestamp: Wed, 01 Jan 2020 22:31:07 GMT

    The code I am trying to run is : 

    library(AzureML)
    library(devtools)
    library(MASS)

    data("Boston")

    sam<-(Boston)



    reg<-lm(medv~.,data = sam)

    summary(reg)

    inputdata<-subset(sam,select = -c(medv))


    tony<- function(x){
      
    print(x)

      }


    print(tony(2))
    library("AzureML")

    ws <- workspace(
      id = "<workspace_id>",
      auth = "<endpoint_key>=",
      api_endpoint = "https://studioapi.azureml.net"
    )

    gonywebservice1<- publishWebService(ws,
                                       fun = tony,
                                       name="onywebservice",
                                       inputSchema = inputdata
                                       )

    please guys 


    Wednesday, January 1, 2020 10:42 PM

All replies

  • Hello,

    AzureML for RStudio is now not supported as the package is removed from CRAN repository from 2019-07-29.

    If you are using older versions of AzureML package then the following steps to publish a web service might be supported.

    Azure ML now supports azuremlsdk for Azure ML workspace. For Azure ML studio this package will not work as the studio package(AzureML) is now removed. 

    -Rohit

    Thursday, January 2, 2020 6:34 AM
    Moderator