r/PACKAGING.md
For a high-level overview of the Arrow release process see the Apache Arrow Release Management Guide.
[R] CRAN packaging checklist for version X.Y.Z and copy this checklist to the issue.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.git log --oneline <sha of last release>..HEAD | grep "\[R\]".Wait for the release candidate to be created.
maint-X.Y.Z-r and push to upstream.git fetch upstream && git checkout maint-X.Y.Z-r && git clean -f -d.make build. This copies Arrow C++ into tools/cpp, prunes some unnecessary components, and runs R CMD build to 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 unset ARROW_HOME).devtools::check_built("arrow_X.Y.Z.tar.gz") locally.urlchecker::url_check() on the R directory.WIP: [R] Verify CRAN release-X.Y.Z-rcX. Add a comment @github-actions crossbow submit --group r to run all R crossbow jobs against the CRAN-specific release branch.Rscript tools/update-checksums.R <libarrow version> to download the checksums for the pre-compiled binaries from the ASF artifactory into the tools directory.git add -f tools/checksums/ && git commit -m "[CRAN] Add checksums"make build). This will clean old artifacts, regenerate documentation, sync C++ files, and build the package.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).This step must be done by the current package maintainer.
r-universe-release; e.g. git tag -f r-universe-release maint-X.Y.Z-r && git push upstream r-universe-release --forceci/scripts/PKGBUILD, r/DESCRIPTION, and r/NEWS.md.pkgdown::build_news() and submit a PR to the asf-site branch of the docs site with the contents of arrow/r/docs/news/index.html replacing the current contents of arrow-site/docs/r/news/index.html.r/pkgdown/assets/versions.json, and update this on the the asf-site branch of the docs site too..