Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upcol_names is rejected with ODS files #206
Comments
This comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
related to #132 . |
This comment has been minimized.
This comment has been minimized.
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! |
This comment has been minimized.
This comment has been minimized.
#225 might fix this by mapping it same way that the |
This comment has been minimized.
This comment has been minimized.
@bokov I think this is now fixed, right? |
This comment has been minimized.
This comment has been minimized.
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
|
This comment has been minimized.
This comment has been minimized.
Super! |
jllipatz commentedJun 19, 2019
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: