Ecfun_release_to_CRAN_process.R

# File > "Open Project..." > [parent of Package file]

# https://r-pkgs.org/release.html

#20.1.  Pick a version number:  
#       in DESCRIPTION: must be later than any version on CRAN
#20.3.  The submission process
#       Store submission comments in cran-comments.md
#20.3.1.  Test environments

# File > "Open project" in the package directory (i.e., containing DESCRIPTION, etc.)

# devtools::check_win_*()
dir()

devtools::check_win_devel()
devtools::check_win_release()
devtools::check_win_oldrelease()

#devtools::check_rhub()
#This function is deprecated and defunct since rhub v2.
#Please see `?rhubv2` on transitioning to the new rhub functions.

#rhub::rhub_setup()
#Setting up R-hub v2.
#✔ Found R package at /Users/sg/Documents/current/R/Ecfun/Ecfun.
#✔ Found git repository at /Users/sg/Documents/current/R/Ecfun/Ecfun.
#✔ Workflow file /Users/sg/Documents/current/R/Ecfun/Ecfun/.github/workflows/rhub.yaml
#already exists and it is current.

#Notes:
#  • The workflow file must be added to the default branch of the GitHub repository.
#• GitHub actions must be enabled for the repository. They are disabled for forked
#repositories by default.

#Next steps:
#  • Add the workflow file to git using `git add <filename>`.
#• Commit it to git using `git commit` (if not committed already).
#• Push the commit to GitHub using `git push` (if not pushed already).
#• Call rhub::rhub_doctor() to check that you have set up R-hub correctly.
#• Call rhub::rhub_check() to check your package.

#rhub::rhub_doctor()
# ... WOOT! You are ready to run rhub::rhub_check() on this package.
#rhub::rhub_check()
# 2024-11-10: This produced a list of 26 different platforms
# with no obvious indication of a recommended default other 
# than 0 or 1:26. I chose the former. 

#20.3.3.  Reverse dependencies

# install.packages("revdepcheck")
#devtools::install_github('r-lib/revdepcheck')

revdepcheck::revdep_reset()

revdepcheck::revdep_check(num_workers = 4)

# local on parent to package: 
# R CMD build Ecfun 
# R CMD check --as-cran Ecfun_*.tar.gaz

#20.4.  Update README.md and NEWS.md 

#20.5.  Submit to CRAN

library(devtools)
spell_check()

release()

#20.6.  Update the version number for the future 
#20.7.  Publicise

#20.1.  Pick a version number:  in DESCRIPTION > what's on CRAN

#20.2.  Run & document R CMD check 
# 2.1-0 because this is to match the move of 
# the database maintenance to wu.ut.at

#20.3.  Check CRAN policies
#20.4.  Update README.md and NEWS.md 
#20.5.  Submit to CRAN
#20.6.  Update the version number for the future 
#20.7.  Publicise
sbgraves237/Ecfun documentation built on Dec. 3, 2024, 12:37 p.m.