You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting a simple export, but keep having a break occur (example below):
library(crunch)
login()
ds <- loadDataset("SURVEY NAME")
exportDataset(ds)
Error in match.arg(format, choices = names(exporters)) :
'arg' must be of length 1
not sure why this no longer works, but I'm wondering if exportDataset now needs the format option to be explicitly declared?
The text was updated successfully, but these errors were encountered:
Hm, yeah, I think file has always been required, and the code for format hasn't changed recently, but possibly a change to R broke it. It would be pretty easy to fix.
I think it should guess the format from the filename by default, (eg file = "data.csv" would be csv, and file = "data.sav" would be spss), does that sound right to you?
yes, that does. I actually think more explicit error messages here would be better, so that if format is not declared, the user is prompted to pick either csv or spss for that argument, and then if no file is declared the default is exactly as you described, so long as the format is chosen.
I'm attempting a simple export, but keep having a break occur (example below):
not sure why this no longer works, but I'm wondering if exportDataset now needs the
format
option to be explicitly declared?The text was updated successfully, but these errors were encountered: