René's URL Explorer Experiment


Title: Changes in downstream packages required by #1402 · Issue #1406 · RcppCore/Rcpp · GitHub

Open Graph Title: Changes in downstream packages required by #1402 · Issue #1406 · RcppCore/Rcpp

X Title: Changes in downstream packages required by #1402 · Issue #1406 · RcppCore/Rcpp

Description: PR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an #include which may mess with the ...

Open Graph Description: PR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an...

X Description: PR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an...

Opengraph URL: https://github.com/RcppCore/Rcpp/issues/1406

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Changes in downstream packages required by #1402","articleBody":"PR #1402 addresses the long-standing issue #1247 by masking `Rf_error()` and preferring `Rcpp::stop()`.  A relatively small number of packages do need a minor adjustment each: often just a removal of an `#include \u003cR.h\u003e` which may mess with the `NO_REMAP` macro, or a simple re-run of `compileAttributes()`.  This issue will regroup these changes and is based on the 2025-11-04 reverse dependency run summarized [in this text file](https://github.com/RcppCore/rcpp-logs/blob/master/results/Rcpp-20251104.txt) as mention in [this comment](https://github.com/RcppCore/Rcpp/pull/1402#issuecomment-3488126548).\n\nThe checklist will be expanded \"in due course\" to record PRs (or emailed patches).\n\n#### Group 1:  Including `R.h` which is best avoided\n\nThis is an issue we should be more proactive about (as for example [RcppArmadillo is w.r.t. `Rcpp.h`](https://github.com/RcppCore/RcppArmadillo/blob/master/inst/include/RcppArmadillo.h#L24-L26) as it can lead to issues with re-definitions of `error()` as seen here.  It is usually both harmless, and without side-effects -- until it isn't. \nIt consists on removing `#include \u003cR.h\u003e` as well as any other R headers, which are already loaded by Rcpp safely. The change can be made anytime before or after we land the patch in Rcpp.\n\n- [ ] BayesProject: patch **emailed** 2025-12-21\n- [ ] GeneralizedWendland: patch **emailed** 2025-12-21\n- [ ] locStra: patch **emailed** 2025-12-21\n- [x] LOMAR: patch **emailed** 2025-12-21, on CRAN 2025-12-22\n- [ ] SAM: patch **emailed** 2025-12-21\n- [ ] TDA: patch **emailed** 2025-12-21\n\n#### Group 2: Use `-DRCPP_NO_MASK_RF_ERROR` if needed\n\nSome packages have a complicated-enough setup, possibly with other callbacks into R, making use of `Rf_error()` unavoidable.  In those cases a `#define` can be used to restore the status quo.  These package can apply the change anytime.\n\n- [ ] ggiraph: davidgohel/ggiraph/pull/343 filled 2025-12-22, merged 2026-01-16\n- [x] mmrm: openpharma/mmrm/pull/556 filled 2025-12-22, merged 2026-01-07, on CRAN 2026-01-08\n- [ ] RTMB: kaskr/RTMB/pull/78 filled 2025-12-22, fixed 2025-12-24\n- [ ] s2: r-spatial/s2/pull/292 filled 2025-12-22, merged 2025-12-31\n\n#### Group 3:  Use custom patch\n\nThis mostly consists of applying a custom manual patch that switches to `Rcpp::stop()`.\n\n- [x] cpr: dewittpe/cpr/pull/63 filled 2025-12-22, merged 2025-12-23, on CRAN 2026-01-08\n- [ ] VIC5: CUG-hydro/VIC5.R/pull/2 filled 2025-12-22\n\n#### Group 4: Re-run `compileAttributes()`\n\nPackages that defined an `Rcpp::interface(cpp)`  have a resulting `RcppExports.cpp` that checks for correct (function) pointers and calls `Rf_error()`.  An `compileAttributes()` re-run _once the PR has landed_ will fix this.  So these packages may be on hold until we make the change in Rcpp, likely right after the next release so early 2026.  They can however apply the patch we prepared if they use the current GitHub version of Rcpp.\n\n- [ ] BGVAR: run `compileAttributes()`, patch\n- [ ] coga: run `compileAttributes()`, patch\n- [ ] comat: run `compileAttributes()`, patch\n- [ ] dqrng: run `compileAttributes()`, patch\n- [x] itp: run `compileAttributes()`, patch; version 1.2.2 on CRAN 2026-01-10\n- [ ] meteoland: run `compileAttributes()`, patch\n- [ ] ravetools:  run `compileAttributes()`, patch\n- [ ] RcppSimdJson:  run `compileAttributes()`, patch\n- [ ] rrum:  run `compileAttributes()`, patch\n- [ ] rucrdtw: run `compileAttributes()`, patch\n- [ ] sf:  run `compileAttributes()`, patch\n- [ ] simcdm: run `compileAttributes()`, patch\n","author":{"url":"https://github.com/eddelbuettel","@type":"Person","name":"eddelbuettel"},"datePublished":"2025-11-11T01:40:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1406/Rcpp/issues/1406"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ba5a1f76-0c37-ec60-f3ef-cbee539d76af
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id93B6:E86F7:32021C1:32B2D40:6970332E
html-safe-noncee3d73fbe7128393ddfb1509170dbac0c465d4d20c7f1aaa65f3fd4f69a7a2024
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0I2OkU4NkY3OjMyMDIxQzE6MzJCMkQ0MDo2OTcwMzMyRSIsInZpc2l0b3JfaWQiOiI0MDM5ODU2ODMxNzc1OTEyNzUwIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0=
visitor-hmac4bad71e90bfd229d077dcfa388925368354e380c227d4188d4021f9007aaee70
hovercard-subject-tagissue:3610329061
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RcppCore/Rcpp/1406/issue_layout
twitter:imagehttps://opengraph.githubassets.com/63834cc7191e2eae78351ebc847e8e6ed694e601e99de66a4676e533be86995f/RcppCore/Rcpp/issues/1406
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/63834cc7191e2eae78351ebc847e8e6ed694e601e99de66a4676e533be86995f/RcppCore/Rcpp/issues/1406
og:image:altPR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeddelbuettel
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/RcppCore/Rcpp git https://github.com/RcppCore/Rcpp.git
octolytics-dimension-user_id5811336
octolytics-dimension-user_loginRcppCore
octolytics-dimension-repository_id14005591
octolytics-dimension-repository_nwoRcppCore/Rcpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14005591
octolytics-dimension-repository_network_root_nwoRcppCore/Rcpp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef643964067a552f02067066d6a910b2f90a5721f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues/1406#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FRcppCore%2FRcpp%2Fissues%2F1406
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FRcppCore%2FRcpp%2Fissues%2F1406
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=RcppCore%2FRcpp
Reloadhttps://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues/1406
Reloadhttps://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues/1406
Reloadhttps://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues/1406
RcppCore https://patch-diff.githubusercontent.com/RcppCore
Rcpphttps://patch-diff.githubusercontent.com/RcppCore/Rcpp
Please reload this pagehttps://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues/1406
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FRcppCore%2FRcpp
Fork 221 https://patch-diff.githubusercontent.com/login?return_to=%2FRcppCore%2FRcpp
Star 784 https://patch-diff.githubusercontent.com/login?return_to=%2FRcppCore%2FRcpp
Code https://patch-diff.githubusercontent.com/RcppCore/Rcpp
Issues 4 https://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues
Pull requests 2 https://patch-diff.githubusercontent.com/RcppCore/Rcpp/pulls
Discussions https://patch-diff.githubusercontent.com/RcppCore/Rcpp/discussions
Actions https://patch-diff.githubusercontent.com/RcppCore/Rcpp/actions
Projects 0 https://patch-diff.githubusercontent.com/RcppCore/Rcpp/projects
Wiki https://patch-diff.githubusercontent.com/RcppCore/Rcpp/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/RcppCore/Rcpp/security
Please reload this pagehttps://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues/1406
Insights https://patch-diff.githubusercontent.com/RcppCore/Rcpp/pulse
Code https://patch-diff.githubusercontent.com/RcppCore/Rcpp
Issues https://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues
Pull requests https://patch-diff.githubusercontent.com/RcppCore/Rcpp/pulls
Discussions https://patch-diff.githubusercontent.com/RcppCore/Rcpp/discussions
Actions https://patch-diff.githubusercontent.com/RcppCore/Rcpp/actions
Projects https://patch-diff.githubusercontent.com/RcppCore/Rcpp/projects
Wiki https://patch-diff.githubusercontent.com/RcppCore/Rcpp/wiki
Security https://patch-diff.githubusercontent.com/RcppCore/Rcpp/security
Insights https://patch-diff.githubusercontent.com/RcppCore/Rcpp/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/RcppCore/Rcpp/issues/1406
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/RcppCore/Rcpp/issues/1406
Changes in downstream packages required by #1402https://patch-diff.githubusercontent.com/RcppCore/Rcpp/issues/1406#top
https://github.com/eddelbuettel
https://github.com/eddelbuettel
eddelbuettelhttps://github.com/eddelbuettel
on Nov 11, 2025https://github.com/RcppCore/Rcpp/issues/1406#issue-3610329061
#1402https://github.com/RcppCore/Rcpp/pull/1402
#1247https://github.com/RcppCore/Rcpp/issues/1247
in this text filehttps://github.com/RcppCore/rcpp-logs/blob/master/results/Rcpp-20251104.txt
this commenthttps://github.com/RcppCore/Rcpp/pull/1402#issuecomment-3488126548
RcppArmadillo is w.r.t. Rcpp.hhttps://github.com/RcppCore/RcppArmadillo/blob/master/inst/include/RcppArmadillo.h#L24-L26
Prevent Rcpp from masking valid uses of Rf_error davidgohel/ggiraph#343https://github.com/davidgohel/ggiraph/pull/343
Prevent Rcpp from masking valid uses of Rf_error openpharma/mmrm#556https://github.com/openpharma/mmrm/pull/556
Prevent Rcpp from masking valid uses of Rf_error kaskr/RTMB#78https://github.com/kaskr/RTMB/pull/78
Prevent Rcpp from masking valid uses of Rf_error r-spatial/s2#292https://github.com/r-spatial/s2/pull/292
Use Rcpp's stop function dewittpe/cpr#63https://github.com/dewittpe/cpr/pull/63
Use Rcpp's stop and warning functions CUG-hydro/VIC5.R#2https://github.com/CUG-hydro/VIC5.R/pull/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.