Comments (8)
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.
Can we do unit tests for RcppArmadillo without Rcpp? I doubt it. Feel free to reopen if there is a better way.
from rcpparmadillo.
Done in af779d0
from rcpparmadillo.
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.
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.
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.
Yes. I'm going to specifically import the artefacts we need (e.g. sourceCpp, Rcpp.plugin.maker, ...) instead of a big import.
from rcpparmadillo.
Good, that's much preferred.
from rcpparmadillo.
Related Issues (20)
- Random seeding for chi2rnd doesn't work cross-platform HOT 4
- warning: chol(): given matrix is not symmetric HOT 7
- Possible bug in configure.ac HOT 18
- Problems in installing RcppArmadillo on macOS Monterey HOT 3
- Missing distr_param argument in randu HOT 8
- no matching function for call to ‘arma::Cube<double>::insert_slices(arma::uword&, arma::mat&) HOT 2
- Deprecating old initialization code in packages using RcppArmadillo HOT 17
- Is `ARMA_64BIT_WORD` supported in RcppArmadillo? HOT 4
- NaN output from arma::uvec compared to arma::vec HOT 4
- Planning to potentially (re)move some legacy internal header files
- Deprecating old stderr stream setting code in packages using RcppArmadillo HOT 12
- Fails to compile vs HOT 3
- Question about SIMD Optimization HOT 3
- package compilation failure HOT 20
- Two failures in test_cube.R on PowerPC HOT 33
- Armadillo 12.0.0 regressions HOT 2
- `RCPP_ARMADILLO_RETURN_ANYVEC_AS_VECTOR` in an R package? HOT 2
- using namespace arma; HOT 1
- Issue on call by reference with a NA matrix HOT 1
- Update indMatrix->arma::SpMat and pMatrix->arma::SpMat for Matrix 1.5-5 HOT 2
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 rcpparmadillo.