Closed ArthurData closed 1 year ago
ETQ client je peux voir que ...
[x] Le devtools::test()est en succès: #36
devtools::test()
[x] Les examples fonctionnent
[x] Toutes les fonctions doivent avoir soit @noRd soit un @export
@noRd
@export
# Prepare for CRAN ----
pkgload::load_all() devtools::test() testthat::test_dir("tests/testthat/")
devtools::run_examples()
local <- utils::fileSnapshot (".", timestamp = tempfile("timestamp"), md5sum = TRUE) home <- utils::fileSnapshot ("~", timestamp = tempfile("timestamp"), md5sum = TRUE)
devtools::test() devtools::run_examples()
dircheck <- tempfile("check") dir.create(dircheck) rcmdcheck::rcmdcheck(check_dir = dircheck)
the_dir <- list.files(file.path(dircheck), pattern = ".Rcheck", full.names = TRUE)
all(list.files(file.path(the_dir, "tests", "testthat")) %in% list.files(file.path(".", "tests", "testthat")))
devtools::build_vignettes() devtools::clean_vignettes()
utils::changedFiles(local, md5sum = TRUE) utils::changedFiles(home, md5sum = TRUE)
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"))
checkhelper::find_missing_tags() # Toutes les fonctions doivent avoir soit @noRd soit un @export checkhelper::check_clean_userspace(pkg = ".") checkhelper::check_as_cran()
spelling::spell_check_package()
urlchecker::url_check() urlchecker::url_update()
usethis::use_version(which = c("patch", "minor", "major", "dev")[2])
@VincentGuyader peux-tu valider ce ticket stp ?
Validé pendant la réunion du 18/01/2023
Critères de validation
ETQ client je peux voir que ...
[x] Le
devtools::test()
est en succès: #36[x] Les examples fonctionnent
[x] Toutes les fonctions doivent avoir soit
@noRd
soit un@export
Comment technique ?
_Check in interactive test-inflate for templates and Addins
pkgload::load_all() devtools::test() testthat::test_dir("tests/testthat/")
Test no output generated in the user files
Run examples in interactive mode too
devtools::run_examples()
PR in progress on the content of these lines
local <- utils::fileSnapshot (".", timestamp = tempfile("timestamp"), md5sum = TRUE) home <- utils::fileSnapshot ("~", timestamp = tempfile("timestamp"), md5sum = TRUE)
run tests or whatever, then ...
devtools::test() devtools::run_examples()
vignettes
dircheck <- tempfile("check") dir.create(dircheck) rcmdcheck::rcmdcheck(check_dir = dircheck)
browseURL(dircheck)
the_dir <- list.files(file.path(dircheck), pattern = ".Rcheck", full.names = TRUE)
Same tests, no new files
all(list.files(file.path(the_dir, "tests", "testthat")) %in% list.files(file.path(".", "tests", "testthat")))
devtools::build_vignettes() devtools::clean_vignettes()
utils::changedFiles(local, md5sum = TRUE) utils::changedFiles(home, md5sum = TRUE)
Check package as CRAN
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"))
devtools::check(args = c("--no-manual", "--as-cran"))
Check content
remotes::install_github("ThinkR-open/checkhelper")
checkhelper::find_missing_tags() # Toutes les fonctions doivent avoir soit
@noRd
soit un@export
checkhelper::check_clean_userspace(pkg = ".") checkhelper::check_as_cran()Check spelling
usethis::use_spell_check()
spelling::spell_check_package()
Check URL are correct
remotes::install_github("r-lib/urlchecker")
urlchecker::url_check() urlchecker::url_update()
Upgrade version number
usethis::use_version(which = c("patch", "minor", "major", "dev")[2])