Skip to content

template for CRAN release #93

@abhsarma

Description

@abhsarma

(this issue is never closed, just re-used for the next release)

  • check for existing problems on CRAN checks of multiverse
  • double-check CRAN policies
  • check package for large files: output from Sys.setenv(NOT_CRAN = "true"); devtools::build() is less than 5MB
  • remove any Remotes in DESCRIPTION and downgrade those packages back to CRAN versions
  • update R and all packages
    • devtools::install_dev_deps()
    • update.packages(ask = FALSE)
  • bump version and date
    • in DESCRIPTION
    • in NEWS
  • devtools::check(remote = TRUE, manual = TRUE, env_vars = c(NOT_CRAN = "false"))
  • run reverse dependency check
  • update NEWS
  • spelling::spell_check_package()
  • spelling::spell_check_package(use_wordlist = FALSE) then look at title and description (if those have changed lately)
  • devtools::document()
  • devtools::install()
  • rebuild README (knit)
  • pkgdown::clean_site()
  • Sys.setenv(NOT_CRAN = "true"); pkgdown::build_site(run_dont_run = TRUE)
  • Sys.setenv(NOT_CRAN = "true"); devtools::check(remote = TRUE, manual = TRUE, run_dont_test = TRUE)
  • remove font?kit files from docs
  • Sys.setenv(NOT_CRAN = "false"); devtools::check(remote = TRUE, manual = TRUE, env_vars = c(NOT_CRAN = "false"))
    • R-release, on Windows
    • Whatever platforms on Github actions
  • Sys.setenv(NOT_CRAN = "true"); devtools::check_win_release()
  • Sys.setenv(NOT_CRAN = "true"); devtools::check_win_devel()
  • Sys.setenv(NOT_CRAN = "true"); devtools::check_win_oldrelease()
  • write cran-comments.md
  • Sys.setenv(NOT_CRAN = "true"); devtools::release()

After package goes live on CRAN:

  • merge dev onto master and cran
  • tag release
  • double check zenodo entry
  • authors
  • license (GPL >= 3)
  • bump to a new dev version on dev branch

Template loosely based on mjskay/ggdist#12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions