Repository navigation
[R] CRAN packaging checklist for version 24.0.0 #49685
Copy link
Copy link
Closed
Description
Describe the enhancement requested
Packaging Checklist for CRAN Release
For a high-level overview of the Arrow release process see the Apache Arrow Release Management Guide.
Before the Arrow Release Candidate Is Created
- Create a GitHub issue entitled
[R] CRAN packaging checklist for version X.Y.Zand copy this checklist to the issue. - Review deprecated functions to advance their deprecation status.
- Evaluate the status of any failing nightly tests and nightly packaging builds. These checks replicate most of the checks that CRAN runs, so we need them all to be passing or to understand that the failures may (though won't necessarily) result in a rejection from CRAN.
- Check current CRAN check results.
- Ensure the contents of the README are accurate and up to date.
- Run
urlchecker::url_check()on the R directory at the release candidate.
commit. Ignore any errors with badges as they will be removed in the CRAN release branch. - Polish NEWS but do not update version numbers (this is done automatically later). You can find commits by, for example,
git log --oneline <sha of last release>..HEAD | grep "\[R\]". - For major releases, prepare content for social media highlighting new features.
Wait for the release candidate to be created.
After the Arrow Release Candidate Has Been Created
- Create a CRAN-release branch from the release candidate commit, name the new branch
maint-X.Y.Z-rand push to upstream.
Prepare and Check Package That Will Be Released to CRAN
-
git fetch upstream && git checkout maint-X.Y.Z-r && git clean -f -d. - Run
make build. This copies Arrow C++ into tools/cpp, prunes some unnecessary components, and runsR CMD buildto generate the source tarball. Because this will install the package, you will need to ensure that the version of Arrow C++ available to the configure script is the same as the version that is vendored into the R package (e.g., you may need to unsetARROW_HOME). -
devtools::check_built("arrow_X.Y.Z.tar.gz")locally.
Wait for Arrow Release Vote
- Release vote passed
Generate R Package to Submit to CRAN
- If the release candidate commit updated, rebase the CRAN release branch on that commit.
- Pick any commits that were made to main since the release commit that were needed to fix CRAN-related submission issues identified in the above steps.
- Remove badges from README.md.
- Run
urlchecker::url_check()on the R directory. - Create a PR entitled
WIP: [R] Verify CRAN release-X.Y.Z-rcX. Add a comment@github-actions crossbow submit --group rto run all R crossbow jobs against the CRAN-specific release branch. - Run
Rscript tools/update-checksums.R <libarrow version>to download the checksums for the pre-compiled binaries from the ASF artifactory into the tools directory. - Commit the checksums:
git add -f tools/checksums/ && git commit -m "[CRAN] Add checksums" - Regenerate arrow_X.Y.Z.tar.gz (i.e.,
make build). This will clean old artifacts, regenerate documentation, sync C++ files, and build the package.
Check Binary Arrow C++ Distributions Specific to the R Package
- Upload the .tar.gz to win-builder (r-devel only) and confirm with Jon (who will automatically receive an email about the results) that the check is clean.
- Upload the .tar.gz to macOS Builder and confirm that the check is clean.
- Check
install.packages("arrow_X.Y.Z.tar.gz")on Ubuntu and ensure that the hosted binaries are used. -
devtools::check_built("arrow_X.Y.Z.tar.gz")locally one more time (for luck).
Submit Package to CRAN
This step must be done by the current package maintainer.
- Upload arrow_X.Y.Z.tar.gz to the CRAN submit page.
- Confirm the submission email.
Wait for CRAN to Accept the Submission
- CRAN has accepted the submission.
- Tag the tip of the CRAN-specific release branch with
r-universe-release; e.g.git tag -f r-universe-release maint-X.Y.Z-r && git push upstream r-universe-release --force - Add a new line to the matrix in the backwards compatability job.
- (patch releases only) Update the package version in
ci/scripts/PKGBUILD,r/DESCRIPTION, andr/NEWS.md. - (CRAN-only releases) Rebuild news page with
pkgdown::build_news()and submit a PR to the asf-site branch of the docs site with the contents ofarrow/r/docs/news/index.htmlreplacing the current contents ofarrow-site/docs/r/news/index.html. - (CRAN-only releases) Bump the version number in
r/pkgdown/assets/versions.json, and update this on the theasf-sitebranch of the docs site too.. - Review the packaging checklist template and update as needed.
- Wait for CRAN-hosted binaries on the CRAN package page to reflect the new version.
- Post already-prepared content to social media.
- Use Bryce's script for contributor calculation.
- Check C++ updates for this release and create issues for any items which need bindings in R
Component(s)
R
Reactions are currently unavailable
Activity
thisisnic commentedon Apr 7, 2026
Let's cherry-pick bb4e492 over too
thisisnic commentedon Apr 19, 2026
And #49794 for the news update
amoeba commentedon Apr 25, 2026
Done:
TODOs (will edit as I go):
amoeba commentedon Apr 26, 2026
Hey @jonkeane, I've submitted to winbuilder and macbuilder and, on macbuilder, we get an error that looks out of our control: https://gist.github.com/amoeba/d5e7b3b8662ea9d466a3d34fa763dbdb. It looks like macbuilder has an older r-devel and a newer cpp11.
The tarball below checks and installs cleanly on my Mac and is otherwise ready to submit:
https://files.brycemecum.com/arrow_24.0.0.tar.gz
If winbuilder comes back clean, do you want to submit or should we hold off until we can pass on macbuilder?
amoeba commentedon Apr 26, 2026
winbuilder is failing with,
amoeba commentedon Apr 26, 2026
I think it's a real issue, I filed #49866. I'll try to find a workaround soon to unblock the CRAN submission.
amoeba commentedon Apr 27, 2026
I cherry-picked #49867 onto
maint-24.0.0-ras612da719aaeaa0c2b11ce4f859db6f71188c0f25and re-submitted winbuilder and macbuilder (link).Edit: Macbuilder still has the cpp11 issue. :(
jonkeane commentedon Apr 27, 2026
Yeah, this does indeed look like a macbuilder issues. What's extra strange to me is that the header claims
4.6.0and release, though there's only been a development version of the macbuilder for a while now (and like you note: that dev version is rather old at this point on dev version time-horizons!And then:
amoeba commentedon Apr 27, 2026
It sounds like Simon updated to the R 4.6 branch which I assume is more/totally up to date with 4.6. New Macbuilder link: https://mac.r-project.org/macbuilder/results/1777334066-04fb543c7df70397/
amoeba commentedon Apr 28, 2026
That run failed with a 502 error fetching xsimd (https://github.com/xtensor-stack/xsimd/archive/14.0.0.tar.gz).
I did another run: https://mac.r-project.org/macbuilder/results/1777335143-a6d53e977e1bb893/
amoeba commentedon Apr 28, 2026
Second run is also 502'ing on github.com. I'll try again in a few hours.
amoeba commentedon Apr 28, 2026
As another test, I installed 4.6.0-sonoma locally and the submission tarball checks cleanly there.
amoeba commentedon Apr 28, 2026
New macbuilder run: https://mac.r-project.org/macbuilder/results/1777348266-db2b99b9235fa505/
amoeba commentedon Apr 28, 2026
The 502s went away and Macbuilder is clean. So both Macbuilder and Winbuilder pass.
Submission tarball is ready: https://files.brycemecum.com/arrow_24.0.0.tar.gz cc @jonkeane
amoeba commentedon Apr 29, 2026
We're accepted! https://cran.r-project.org/web/packages/arrow/index.html. Binaries are WIP. I'll work on post-acceptance tasks later today so we have material for socials.
jonkeane commentedon Apr 29, 2026
I came to say the same I also updated the checkmarks
amoeba commentedon Apr 30, 2026
Will update as I go:
amoeba commentedon Apr 30, 2026
Post-release tasks mostly done, we're just waiting on a few PRs (above) and CRAN binaries.
MINOR: [R][Release] Update arrow R backwards compatibility job (#49903)
[Website][R] Update docs/r/news/index.html (#781)
amoeba commentedon May 4, 2026
Everything on the checklist is done, I'm closing this. Thanks everyone.
MINOR: [R][Release] Update arrow R backwards compatibility job (apach…