Skip to content

MINOR: [R] cast() documented but not exported in NAMESPACE#49854

Open
AnkitAhlawat7742 wants to merge 1 commit intoapache:mainfrom
AnkitAhlawat7742:cast_export
Open

MINOR: [R] cast() documented but not exported in NAMESPACE#49854
AnkitAhlawat7742 wants to merge 1 commit intoapache:mainfrom
AnkitAhlawat7742:cast_export

Conversation

@AnkitAhlawat7742
Copy link
Copy Markdown

@AnkitAhlawat7742 AnkitAhlawat7742 commented Apr 24, 2026

FIX #49852

Rationale for this change

cast() is a publicly documented function available at https://arrow.apache.org/docs/r/reference/cast.html and is intended for use in dplyr pipelines. However, it was marked with @Keywords internal which prevented it from being exported in the NAMESPACE file.

What changes are included in this PR?

Removed @Keywords internal tag which was incorrectly marking cast() as an internal function
Added @export tag so that devtools::document() adds cast to the NAMESPACE file, making it publicly accessible to users

Are these changes tested?

Existing tests in the test suite already cover cast(). No new tests needed as only the export tag was changed, not the implementation.

Are there any user-facing changes?

Yes. cast() can now be called directly by users as documented:

@github-actions
Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@AnkitAhlawat7742 AnkitAhlawat7742 changed the title [R] Export cast() in NAMESPACE MINOR: [R] cast() documented but not exported in NAMESPACE Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[R] cast() documented but not exported in NAMESPACE

1 participant