dev/runBeforeRelease.R

# Check List for A New Release

## Vignette building

devtools::install(build_vignettes = TRUE)

## Spell checking

library(devtools)
library(roxygen2)

spell_check()

rhub::validate_email(email = "yuehu@tsinghua.edu.cn", token = "345011f4ca60404abf76007e9ae89e3e")

check_rhub(email = "yuehu@tsinghua.edu.cn")


## Run the CRAN check
# 1. Under the `Build` tab
# 1. Fixed all the errors and warnings

## Documentation

# 1. Update the version number in `DESCRIPTION`
# 1. Update `NEWS`

## Removing the htmls to release space

library(here)

ls_html <-
  list.files(here("inst/tutorials"),
             pattern = "*.html$",
             recursive = TRUE,
             full.names = TRUE)

file.remove(ls_html)

## Release

devtools::release()

## Change the version number in `DESCRIPTION` back to the dev version (i.e., "9999")

## Post the Release note when the package is on CRAN


## (No need if the package already has a website) Package website building
library(devtools)

usethis::git_vaccinate() #Adds .DS_Store, .Rproj.user, .Rdata, .Rhistory, and .httr-oauth to your global (a.k.a. user-level) .gitignore. This is good practice as it decreases the chance that you will accidentally leak credentials to GitHub.

use_github_links()
use_github_action_check_standard()

library(pkgdown)
build_site()
sammo3182/interplot documentation built on March 5, 2024, 9:23 a.m.