Closed dougmsft closed 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)
Issue has been fixed and checked into Dev branch.
Added unit test to test this is caught correctly.
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.
Traceback: