.dev/CRAN/prepare-for-release.R

# Configuration -----------------------------------------------------------
Sys.setenv(`_R_DEPENDS_ONLY` = "true")


# Setup -------------------------------------------------------------------
remotes::install_cran(c("devtools", "urlchecker", "rhub", "revdepcheck"))
# remotes::install_github("r-lib/revdepcheck@master")

# Printing Code -----------------------------------------------------------
# Lint the package
(report = lintr::lint_package(show_progress = TRUE))
styler::style_pkg(
    filetype = c("R", "Rprofile", "Rmd", "Rmarkdown", "Rnw", "qmd")[c(1,3)],
    exclude_dirs = c("packrat", "renv", ".dev", ".git", ".github", ".Rproj.user", "docs", "inst"),
    include_roxygen_examples = TRUE,
)

# Steps -------------------------------------------------------------------
# devtools::build_readme()
urlchecker::url_check()
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
rhub::check_for_cran()
revdepcheck::revdep_check(num_workers = 8)
# revdepcheck::revdep_reset(pkg = ".")


# Deployment --------------------------------------------------------------
# devtools::submit_cran()
tidylab/R6P documentation built on Dec. 23, 2024, 9:22 a.m.