Coder Social home page Coder Social logo

Comments (6)

eddelbuettel avatar eddelbuettel commented on May 28, 2024

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.

astamm avatar astamm commented on May 28, 2024

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.

eddelbuettel avatar eddelbuettel commented on May 28, 2024

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.

astamm avatar astamm commented on May 28, 2024

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.

eddelbuettel avatar eddelbuettel commented on May 28, 2024

Wrong repo. We do not have control over the tools package. 😉

from rcpp.

Enchufa2 avatar Enchufa2 commented on May 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.