Skip to content

Conversation

@thisisnic
Copy link
Member

@thisisnic thisisnic commented Sep 21, 2021

Update the table in arrow.Rmd to add extra explanations and re-order some of the contents.

@thisisnic thisisnic changed the title ARROW-1339: [R] Update arrow.Rmd vignette ARROW-13397: [R] Update arrow.Rmd vignette Sep 21, 2021
@github-actions
Copy link

@apache apache deleted a comment from github-actions bot Sep 21, 2021
@thisisnic thisisnic marked this pull request as ready for review September 21, 2021 16:45
Copy link
Member

@jonkeane jonkeane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one change / question about the link there


^2^: Some Arrow data types do not have an R equivalent and will raise an error
if cast to or mapped to via a schema. See
[this discussion section](#no-compat-type) for an example of this.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of "See [this discussion section]" could we use something like "See [the XXX section]" (the this to me seems a little bit odd.

Also, where is this supposed to be linking to? I've tried to find the section but haven't yet

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh, I'm an idiot, I pasted this back from the cookbook without reading properly, will update!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed now.

@thisisnic thisisnic requested a review from jonkeane October 4, 2021 07:51
Copy link
Member

@jonkeane jonkeane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. One small nit and one question out of curiosity


^4^: Due to the limitation of R `factor`s, Arrow `dictionary` values are coerced to string when translated to R if they are not already strings.
^4^: Due to the limitation of R factors, Arrow `dictionary` values are coerced
to string when translated to R if they are not already strings.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't relevant in this doc, but now I'm curious: what is the limitation of R factors here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a clue tbh; I think @ianmcook may(?) have written this text originally, so might have a better idea than me

yields a `bit64::integer64` vector) by setting `options(arrow.int64_downcast = FALSE)`.

^2^: Some Arrow data types do not have an R equivalent and will raise an error
if cast to or mapped to via a schema.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might we mention something like "do not yet have an R equivalent"? At least for duration I imagine we will map it on to lubridate's duration type at some point?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jonkeane jonkeane closed this in 3fb1e7d Oct 6, 2021
ViniciusSouzaRoque pushed a commit to s1mbi0se/arrow that referenced this pull request Oct 20, 2021
Update the table in arrow.Rmd to add extra explanations and re-order some of the contents.

Closes apache#11202 from thisisnic/ARROW-13397_arrow.Rmd

Authored-by: Nic Crane <thisisnic@gmail.com>
Signed-off-by: Jonathan Keane <jkeane@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants