-
Notifications
You must be signed in to change notification settings - Fork 2
Codebook csv import #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codebook csv import #165
Conversation
some todos: convert colors, report errors about malformed csv, choice of append/overwrite, include color in requal csv export, backend handling
tested manually to still be working
| if ( | ||
| is.numeric(color) && length(color) == 3 && all(color >= 0 & color <= 255) | ||
| ) { | ||
| return(paste0("rgb(", paste(color, collapse = ", "), ")")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if this can happen if you import dataset from csv?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point 😅 but actually for quoted character values it is possible. We could give up on this check for simplicity's sake.
As requested in #161.
New (sub)module to import codebooks from rectangular format (CSV/TSV) files.
Relies on a modal wizard, which gives users some leeway in how their import file is formatted.
Includes basic checks such as properly specified colors or unique code names.
At present, the following is supported:
Although this works and can be useful for some use cases, I think we need further steps to consider this feature complete:
These extensions will enable complete circulation of Requal codebooks via CSVs.
Also, when supported by Requal, we need to implement the following: