Title: Warn or error if Rcpp.h (and R.h) was included · Issue #142 · RcppCore/RcppEigen · GitHub
Open Graph Title: Warn or error if Rcpp.h (and R.h) was included · Issue #142 · RcppCore/RcppEigen
X Title: Warn or error if Rcpp.h (and R.h) was included · Issue #142 · RcppCore/RcppEigen
Description: As discussed over in Rcpp in RcppCore/Rcpp#1402 we are seeing some side effects from some package including R.h and later including possible also Rcpp.h and then RcppEigen.h leaving some of the masking of R's own error() function as Rf_e...
Open Graph Description: As discussed over in Rcpp in RcppCore/Rcpp#1402 we are seeing some side effects from some package including R.h and later including possible also Rcpp.h and then RcppEigen.h leaving some of the mas...
X Description: As discussed over in Rcpp in RcppCore/Rcpp#1402 we are seeing some side effects from some package including R.h and later including possible also Rcpp.h and then RcppEigen.h leaving some of the mas...
Opengraph URL: https://github.com/RcppCore/RcppEigen/issues/142
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warn or error if Rcpp.h (and R.h) was included","articleBody":"As discussed over in Rcpp in https://github.com/RcppCore/Rcpp/pull/1402 we are seeing some side effects from some package including `R.h` and later including possible also `Rcpp.h` and then `RcppEigen.h` leaving some of the masking of R's own `error()` function as `Rf_error()` to not be effective so that it later clashes with Eigen function `error()`.\n\nIn general, it is always cleanest to just include `RcppEigen.h` as it does take care of both the others. For RcppArmadillo this once lead to issues to that it (very early on) switch to an actual compile error. We may do that one day but for now it might be a good idea to at least warn from `RcppEigen.h` if the header guards for either or both of `Rcpp` and `R` are seen.","author":{"url":"https://github.com/eddelbuettel","@type":"Person","name":"eddelbuettel"},"datePublished":"2025-11-05T18:46:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/142/RcppEigen/issues/142"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2cf7d7aa-dc47-c066-c0dc-c903d9980356 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5A0:327FB4:44E3D1B:5DC3562:6970993E |
| html-safe-nonce | 2a2f12f2ab6aeb7b1d8435c63066e50796a7fc7fc4be7f3ebd82569f4ad2a57f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUEwOjMyN0ZCNDo0NEUzRDFCOjVEQzM1NjI6Njk3MDk5M0UiLCJ2aXNpdG9yX2lkIjoiMTc3MTE0OTM3MjUyMzg0NTk1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5dd737407af96acae2aa1ff0be1d5550d847a3dc63211cdb7571e8728988ea0e |
| hovercard-subject-tag | issue:3592359578 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RcppCore/RcppEigen/142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b00129fc77561aabc30691827a3785dd06772bddf6f68a11f3047180b647778/RcppCore/RcppEigen/issues/142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b00129fc77561aabc30691827a3785dd06772bddf6f68a11f3047180b647778/RcppCore/RcppEigen/issues/142 |
| og:image:alt | As discussed over in Rcpp in RcppCore/Rcpp#1402 we are seeing some side effects from some package including R.h and later including possible also Rcpp.h and then RcppEigen.h leaving some of the mas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eddelbuettel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/RcppCore/RcppEigen git https://github.com/RcppCore/RcppEigen.git |
| octolytics-dimension-user_id | 5811336 |
| octolytics-dimension-user_login | RcppCore |
| octolytics-dimension-repository_id | 14022212 |
| octolytics-dimension-repository_nwo | RcppCore/RcppEigen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14022212 |
| octolytics-dimension-repository_network_root_nwo | RcppCore/RcppEigen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width