MINOR: [R] better documentation for col_types argument in open_delim_dataset #45719
+5
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rationale for this change
Hi, can you please consider this tiny update to the docs? In the current documentation, it's misleading how to specify col_types when a delimited file is scanned using
open_csv_dataset
,open_delim_dataset
, etc. Reading what is currently written, one may assume that they can declare column types by providing the compact string representation thatreadr
uses.arrow/r/man/open_delim_dataset.Rd
Lines 164 to 165 in 3c8fe09
But it doesn't work. See reprex below
What changes are included in this PR?
The current PR provides a clearer explanation of what should be passed to the
col_types
argument, along with a basic example for theopen_csv_dataset()
.Are these changes tested?
Not needed, as only the R documentation has been updated
Are there any user-facing changes?
Only the R documentation has been updated