Created
April 1, 2020 03:00
-
-
Save csaybar/6b9e23c0184102308cea29fd1087d831 to your computer and use it in GitHub Desktop.
My build check for R packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Testing build check used in rgee | |
# 1. Install packages | |
if (!require(devtools)) install.packages('devtools') | |
if (!require(pkgdown)) install.packages('pkgdown') | |
if (!require(rhub)) install.packages('rhub') | |
if (!require(goodpractice)) install.packages('goodpractice') | |
# 2. goodpractice checks | |
tcks <- all_checks() | |
## 2.1. check documentation | |
devtools::check_man() | |
## 2.2. cyclocomp check | |
g <- gp(checks = tcks[2]) | |
## 2.3. Check DESCRIPTION file | |
g <- gp(checks = tcks[3:6]) | |
## 2.4. lintr check | |
g <- gp(checks = tcks[7:14]) | |
## 2.5 Import/Export check | |
g <- gp(checks = tcks[15:16]) | |
## 2.6 Avoid T and F | |
g <- gp(checks = tcks[230]) | |
## 2.7 rcmdcheck | |
g <- gp(checks = tcks[17:229]) | |
## 2.7 rcmdcheck | |
# rhub::check_for_cran() | |
# rhub::check_with_rdevel() | |
# rhub::check_with_rpatched() | |
# rhub::check_with_rrelease() | |
# rhub::check_with_roldrel() | |
# rhub::check_on_windows() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment