misc/release_script.R

# - install packages("rhub")
# - install packages("goodpractice")
# - install packages("devtools")
# - install packages("remotes")
# - remotes  install github("jumpingrivers/inteRgrate")
# - install packages("spelling")

.rs.restartR()
source("misc/update_DESCRIPTION_NEWS.R")
rm(list = ls(all.names = TRUE))

# Update your R, Rstudio and all dependent R packages
# (R and Rstudio has to be updated manually
devtools::install_deps()

# Write tests and check if your own tests work
devtools::test()
devtools::test_coverage()

# Check your examples in your manuals
# unless you set your examples to \dontrun{} or \donttest{})
devtools::run_examples()

# Local R CMD check
devtools::check()

#Check win-builder (devtools::check_win_devel()) 	x 	x
#Update your manuals
devtools::document()


# Update your NEWS file
# Update DESCRIPTION (e.g. version number)
# Spell check
devtools::spell_check()

# Run goodpractice check
goodpractice::gp()

# # Check package dependencies
# inteRgrate::check_pkg()
# 
# # Check if code adheres to standards
# inteRgrate::check_lintr()
# 
# # Check if your description is tidy
# inteRgrate::check_tidy_description()
usethis::use_tidy_description()

# # Check if file names are correct
# inteRgrate::check_r_filenames()
# 
# # Check if .gitignore contains standard files
# inteRgrate::check_gitignore()

# Update cran-comments.md
devtools::check()

# check win devel
devtools::check_win_devel()

# Check for CRAN specific requirements using rhub and save it in the results
# objects
rhub::rhub_check(platforms = c("linux",
                               "windows",
                               "ubuntu-next",
                               "ubuntu-release"),
                 branch = "dev")


devtools::release()
mnist91/origin documentation built on Nov. 26, 2024, 6:13 p.m.