-
Notifications
You must be signed in to change notification settings - Fork 77
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
col_names is rejected with ODS files #206
Comments
There is an undocumented Unfortunately, this argument is not documented. Probably because in the early days of rio, there was a need to unify all |
related to #132 . |
Is there a chance that the 'header' argument will disappear in some future? If so, the solution is not better than using read_ods instead of import! |
#225 might fix this by mapping it same way that the |
@bokov I think this is now fixed, right? |
Yes! This is fixed (in addition, confirming that the > export(mtcars,'mtcars1.ods')
adding: content.xml (deflated 96%)
adding: META-INF/ (stored 0%)
adding: META-INF/manifest.xml (deflated 61%)
adding: meta.xml (deflated 51%)
adding: mimetype (deflated 4%)
adding: styles.xml (deflated 70%)
> write_ods(mtcars,'mtcars2.ods')
adding: content.xml (deflated 96%)
adding: META-INF/ (stored 0%)
adding: META-INF/manifest.xml (deflated 61%)
adding: meta.xml (deflated 51%)
adding: mimetype (deflated 4%)
adding: styles.xml (deflated 70%)
> mt1 <- import('mtcars1.ods',col_names=F)
Parsed with column specification:
cols(
A = col_character(),
B = col_character(),
C = col_character(),
D = col_character(),
E = col_character(),
F = col_character(),
G = col_character(),
H = col_character(),
I = col_character(),
J = col_character(),
K = col_character()
)
> mt2 <- import('mtcars2.ods',col_names=F)
Parsed with column specification:
cols(
A = col_character(),
B = col_character(),
C = col_character(),
D = col_character(),
E = col_character(),
F = col_character(),
G = col_character(),
H = col_character(),
I = col_character(),
J = col_character(),
K = col_character()
)
> identical(mt1,mt2)
[1] TRUE
|
Super! |
When trying to read an ODS file with no header line containing column names, I get the following message :
formal argument "col_names" matched by multiple actual arguments
Example:
The text was updated successfully, but these errors were encountered: