dev/02-development.R

#' ---
#' title: "Development"
#' author: "Corrado Lanera"
#' date: "`r date()`"
#' output:
#'   html_document:
#'     toc: true
#'     toc_float: true
#'     keep_md: true
#' ---
#'
#' ```{r setup, include=FALSE}
#' knitr::opts_chunk$set(
#'   echo = TRUE,
#'   eval = FALSE
#' )
#' ```
#'








#'
#' Development history
#' ====================================================================
#' List here all the command executed during development of the package
#'

# renv::install("CorradoLanera/autotestthat")
autotestthat::auto_test_package_job() # before every start!


# usethis::use_test("<function_name>")
# usethis::use_r("<function_name>")


# ...
# ...
# ...








#'
#' Check cycles
#' ====================================================================
#'
#' Before pushes
#' --------------------------------------------------------------------
#'
usethis::use_tidy_description()
spelling::spell_check_package()
spelling::update_wordlist()




#'
#' Before pull requests
#' --------------------------------------------------------------------
#'
lintr::lint_package()
goodpractice::gp()

# The following calls run into your (interactive) session
# Use the corresponding RStudio button under the "Build"
# tab to execute them mantaining free your console
# (and running them in a non-interactive session)
devtools::test()
devtools::check()

#'
#' > Update the `NEWS.md` file
#'
usethis::use_version()








#'
#' CRAN submission's cycle
#' ====================================================================
#'

# usethis::use_release_issue() # at the first start only
devtools::build_readme()
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
cran_prep <- rhub::check_for_cran()
CorradoLanera/pkgsetup documentation built on June 28, 2020, 10:40 a.m.