Skip to content

Compatibility with R 4.6#1083

Merged
lionel- merged 9 commits intomainfrom
task/r-devel-compat
Mar 8, 2026
Merged

Compatibility with R 4.6#1083
lionel- merged 9 commits intomainfrom
task/r-devel-compat

Conversation

@lionel-
Copy link
Contributor

@lionel- lionel- commented Mar 4, 2026

Branched from #1076

R core just removed access to a bunch of APIs, just in time to put our new r-devel build (#1076) to good use.

Screenshot 2026-03-04 at 18 11 17

The main change is that we no longer unlock our private namespaces and environments. Instead we wait until they are fully initialised to lock them. In debug builds we never lock them to allow hot-reloading when a .R file changes.

Otherwise we follow what we've been doing in rlang, lobstr, vctrs, and other packages regarding compatibility with C API. E.g. in zap_srcref() or obj_size(). We use new APIs (with polyfills for old R compats) or new workaround approaches.

I've also proactively removed usage of ATTRIB() and SET_ATTRIB() as well (except in the altrep utils) since these have been promoted from NOTE to WARNING on CRAN.

@lionel- lionel- force-pushed the task/r-devel-compat branch from e544706 to 354298d Compare March 4, 2026 17:17
@lionel- lionel- requested a review from DavisVaughan March 4, 2026 17:41
@lionel- lionel- force-pushed the task/r-devel-compat branch from 354298d to d719674 Compare March 6, 2026 14:04
@lionel- lionel- force-pushed the task/r-dev-tests branch from e0bfc6a to 78cb979 Compare March 8, 2026 12:57
Base automatically changed from task/r-dev-tests to main March 8, 2026 12:57
@lionel- lionel- force-pushed the task/r-devel-compat branch from d719674 to 36b043a Compare March 8, 2026 12:58
@lionel- lionel- merged commit 7e3c893 into main Mar 8, 2026
9 checks passed
@lionel- lionel- deleted the task/r-devel-compat branch March 8, 2026 12:58
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants