>>>>> Kaifeng Lu
>>>>> on Fri, 6 Feb 2026 10:23:27 -0500 writes:
> I am currently submitting a new version of the trtswitch package to CRAN
> and have encountered a fatal error during the macOS arm64 build process:
> fatal error: 'R_ext/Callbacks.h' file not found
> The full build log for this submission is available here
> macOS build result for 1770388945-93cbe1227ad944fa
>
<https://mac.r-project.org/macbuilder/results/1770388945-93cbe1227ad944fa/>
> I was able to replicate this issue using rhub::rhub_check() on both m1-san
> and macos-arm64 (R-devel).
The NEWS for R-devel (which will become the next version of R ca. in April)
have contained for a couple of weeks
* The non-API header files R_ext/Callbacks.h and R_ext/PrtUtil.h
are no longer copied to the installed includes directory. The
R_ObjectTable type definitions formally in R_ext/Callbacks.h are
now available in the new header file R_ext/ObjectTable.h. This
new header file should be used in packages instead of
R_ext/Callbacks.h.
So, source code accessing these will have to be adapted.
They were never API, but people *could* misuse them.
As mention Rcpp, maybe you are using an outdated version of Rcpp?
Rcpp and the Rcpp<some> package were all adapted to the above
news, AFAIK mostly even before their exclusion became active.
Martin
> While the Linux and Windows builds pass successfully, those logs do
include
> a note regarding R.h and Rinternals.h being included before Rcpp.h
headers.
> Interestingly, when I attempted to rebuild the currently published version
> (v0.2.3), I encountered the same errors. This suggests that the issue may
> stem from recent changes in the macOS build environment or stricter
R-devel
> checks introduced earlier this year.
> I would appreciate any advice or suggestions you might have to resolve
> these header conflicts and missing file errors.
> Best regards,
> Kaifeng
> [[alternative HTML version deleted]]
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel