RevolutionAnalytics / AzureML

An R interface to AzureML(https://studio.azureml.net/) experiments, datasets, and web services.
Other
47 stars 22 forks source link

testAllowedTypes function - Error : missing value where TRUE/FALSE needed #133

Open ksasso opened 6 years ago

ksasso commented 6 years ago

Reproducible Example Duplicated error below. Fix for issue at Columbus Collaborators Github

Reproducible Example

azure_fxn <- function(input_thing){
  output_thing <- input_thing[input_thing$mpg > 30,]
  return(output_thing)
}

inputMTCars <- mtcars
inputMTCars$carnames <- rownames(mtcars)

#removing rowname col from mtcars. This produces an error on the Consume function, with table column count being 1 more than expected

rownames(inputMTCars) <- NULL

api <- publishWebService(
  ws,
  fun = azure_fxn,
  name = "AzureML-vignette-silly-function",
  inputSchema = inputMTCars
)
output <- consume(api, inputMTCars)