Comments (6)
Hm. A guess from the hip here -- are you sure it's
- not the
.External2
? - not also happening via the base R function [1] writing
src/init.c
as we IIRC call it to?
[1] ie tools::package_native_routine_registration_skeleton()
?
from rcpp.
Thanks for the reply. And apologies for filing the issue here. It actually happens when tools::package_native_routine_registration_skeleton()
is invoked. Not sure why yet. But seems unrelated to Rcpp.
from rcpp.
No worries. You interfaced our function, I just happened to suspect that the base function was at the heart of it.
I to have written simple wrapper around uniroot()
and I got by without .External2()
. I am sure you find a way that is compliant with the R API.
from rcpp.
Actually it seems that the problem is in tools:::native_routine_registration_db_from_ff_call_db()
at the beginning when they define the vector ff_call_names
to look for in the code.
It is currently:
native_routine_registration_db_from_ff_call_db <- function (calls, dir = NULL, character_only = TRUE)
{
if (!length(calls))
return(NULL)
ff_call_names <- c(".C", ".Call", ".Fortran", ".External")
if I add .External2
to the vector, it works fine.
from rcpp.
Wrong repo. We do not have control over the tools
package. 😉
from rcpp.
@astamm FWIW, the manual page for .External2
declares it as an internal version of .External
, which suggests that you probably should be using .External
instead. Of course this collides with the fact that they export it. So... who knows.
from rcpp.
Related Issues (20)
- Avoid readability-avoid-const-params-in-decls? HOT 5
- Add support for check.names HOT 5
- Compiler warning on windows-arm64 (libc++) HOT 3
- Figure 3 incorrect caption in Rcpp-introduction vignette HOT 2
- Upstreaming `std::tuple<>` support HOT 10
- sourceCpp crashes R when called about 1000 times on same code HOT 10
- Integer overflow in `MatrixRow` offset calculations for large matrices HOT 8
- Switch from S4SXP to OBJSXP HOT 2
- pass by const refererence HOT 1
- A fresh -Wformat-security issue under r-devel HOT 9
- 'CRAN package Rcpp' notice HOT 5
- Installation/Compiling Error for Package with Rcpp dependency - Ubuntu (rvmf.cpp?) HOT 5
- Exporting classes using `Rcpp::interfaces(cpp)` that are shared among multiple cpp files through header file HOT 13
- test_packageversion fails with Rcpp 1.0.12 HOT 3
- Question regarding replacement by reference of <RTYPE>Array class without making copy HOT 8
- Cannot make std::vector<int8_t> from NumericVector HOT 4
- issue building phangorn 2.11 for wasm HOT 3
- New warnings from -Wconversion -Wno-sign-conversion HOT 6
- Exporting comments into function definitions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcpp.