RevolutionAnalytics / AzureML

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

Missing workspace parameter on download.datasets() leads to cryptic error message #93

Closed dougmsft closed 8 years ago

dougmsft commented 8 years ago

its <- download.datasets('HSAFundsData.csv')

This code leads to the following error message which does tell the user the real issue which is a missing workspace parameter.

Error in as.data.frame.default(datasets): cannot coerce class ""function"" to a data.frame

Traceback:

1. download.datasets("HSAFundsData.csv")
2. as.data.frame(datasets)
3. as.data.frame.default(datasets)
4. stop(gettextf("cannot coerce class \"%s\" to a data.frame", deparse(class(x))), 
 .     domain = NA)
QuantDevHacks commented 8 years ago

Issue has been fixed and checked into Dev branch.

andrie commented 8 years ago

Added unit test to test this is caught correctly.