Skip to content

Commit

Permalink
Adds covr (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolase90 authored Apr 12, 2019
1 parent 83ffdfd commit 49a3368
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
name: Move files
command: mv ${RCHECK_DIR} /tmp/Rcheck
when: always

- run:
name: Code coverage
when: on_success
command: R -e 'covr::package_coverage()'
- store_test_results:
path: /tmp/Rcheck/tests/
when: always
Expand Down
2 changes: 2 additions & 0 deletions .covrignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
R/global.R
R/zzz.R
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Suggests:
ranger,
xgboost,
testthat,
lintr
lintr,
covr
LinkingTo:
RcppArmadillo,
Rcpp
2 changes: 1 addition & 1 deletion src/distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using namespace Rcpp;
//' Used to get the Euclidean distance as well by setting \code{mcov} = \code{diag(m)}.
//'
//' @param featureList List of vectors indicating all factor combinations that should be included in the computations. Assumes that the first one is empty.
//' @param mcov Matrix. The Sigma-matrix in the Mahalanobis distance formula (\code{cov(Xtrain_mat)}) gives Mahalanobis distance,
//' @param mcov Matrix. The Sigma-matrix in the Mahalanobis distance formula (\code{stats::cov(Xtrain_mat)}) gives Mahalanobis distance,
//' \code{diag(m)} gives the Euclidean distance.
//' @param S_scale_dist Logical indicating
//'
Expand Down

0 comments on commit 49a3368

Please sign in to comment.