Closed ArthurData closed 1 year ago
checkhelper::check_as_cran
# Prepare for CRAN ---- # 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() # Upgrade version number usethis::use_version(which = c("patch", "minor", "major", "dev")[2])
Je valide
Critères de validation
checkhelper::check_as_cran
-> #47Comment technique ?