Skip to content
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

refactor: rewrite S3 methods of arrow and nanoarrow package functions #754

Merged
merged 4 commits into from
Jan 31, 2024

Conversation

eitsupi
Copy link
Collaborator

@eitsupi eitsupi commented Jan 31, 2024

  • as_arrow_table and as_record_batch_reader for RPolarsDataFrame no longer need nanoarrow
  • Improve Rd files
  • Split the test file

R/pkg-nanoarrow.R Outdated Show resolved Hide resolved
#'
#' pl_df = as_polars_df(mtcars)
#' as_arrow_table(pl_df)
# exported in zzz.R
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# exported in zzz.R
# exported in zzz.R: this generic belongs to `arrow` and we only export the method if
# `arrow` is already loaded when we load `polars`

just a note for future us

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are similar things elsewhere, so if you are interested, please change them all by another PR.

@eitsupi eitsupi merged commit 15fa9f8 into main Jan 31, 2024
17 checks passed
@eitsupi eitsupi deleted the more-arrow branch January 31, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants