Skip to content

Commit

Permalink
solved
Browse files Browse the repository at this point in the history
  • Loading branch information
sestelo committed Oct 9, 2024
1 parent aefb5cd commit 412c600
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
^.*\.Rproj$
^\.Rproj\.user$
.travis.yml
codecov.yml
^codecov\.yml$
README.md
^CRAN-RELEASE$
^cran-comments\.md$
Expand Down
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ Imports:
RColorBrewer,
grDevices
Suggests:
covr,
condSURV,
knitr,
plotly,
rmarkdown,
testthat
testthat (>= 3.0.0)
Config/testthat/edition: 3
RoxygenNote: 7.3.2
VignetteBuilder: knitr
21 changes: 21 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
coverage:
status:
project:
default:
target: auto
threshold: 1%
informational: true
patch:
default:
target: auto
threshold: 1%
informational: true

comment: false
language: R
sudo: false
cache: packages
after_success:
- Rscript -e 'covr::codecov()'
ignore:
- "R/install.R"
13 changes: 11 additions & 2 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# This file is part of the standard setup for testthat.
# It is recommended that you do not modify it.
#
# Where should you do additional test configuration?
# Learn more about the roles of various files in:
# * https://r-pkgs.org/tests.html
# * https://testthat.r-lib.org/reference/test_package.html#special-files

library(testthat)
library(clustcurv)
testthat::skip_if_not_installed(testthat::test_check("clustcurv"))

if (identical(Sys.getenv("NOT_CRAN"), "true"))
library(clustcurv)
test_check("clustcurv")

0 comments on commit 412c600

Please sign in to comment.