Git Product home page Git Product logo

Comments (8)

romainfrancois avatar romainfrancois commented on June 12, 2024

Sure. That just means we nee to load Rcpp when we do unit tests. RcppArmadillo does not otherwise need to depends on Rcpp.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Can we do unit tests for RcppArmadillo without Rcpp? I doubt it. Feel free to reopen if there is a better way.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Done in af779d0

from rcpparmadillo.

romainfrancois avatar romainfrancois commented on June 12, 2024

The R code in RcppArmadillo does not call Rcpp functions, and so I think it is not right to have a Depends. We should move away from Depends as much as possible.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Yes. But Imports: was just wrong.

I was just out with Anna and realized that Suggests: should be enough for unit testing, and does not conflict with LinkingTo. Will try that in a moment or two.

[ tried and didn't work. ]

You did not mention that you changed the package in the meantime. I think we get by with Suggests: alone in another package, but if the unit_test_setup() makes you happy all is well. But id does trigger this warning even under R-release:

* checking R code for possible problems ... NOTE
unit_test_setup : <anonymous>: no visible binding for global variable
   ‘pathRcppArmadilloTests’

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Fixed in 3a7e59f

Also, importFrom(Rcpp, foo, bar, biz) is preferable to a blanket import(Rcpp) which is not a lot better than Depends:. So if you know which functions you need, consider trying the former.

from rcpparmadillo.

romainfrancois avatar romainfrancois commented on June 12, 2024

Yes. I'm going to specifically import the artefacts we need (e.g. sourceCpp, Rcpp.plugin.maker, ...) instead of a big import.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Good, that's much preferred.

from rcpparmadillo.

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.