-
Notifications
You must be signed in to change notification settings - Fork 15
/
BUILD.R
67 lines (53 loc) · 1.62 KB
/
BUILD.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
setwd('/home/david/git/rpostgis/')
library(devtools)
# install_github("basille/basr")
library(basr)
install()
# build ignores
use_build_ignore("rpostgis.pdf")
use_build_ignore("tests")
use_build_ignore("revdep")
use_build_ignore("cran-comments.md")
use_build_ignore("tests/test_data/")
use_build_ignore("BUILD.R")
use_build_ignore("docs")
use_build_ignore("pkgdown")
# create/update documentation
document()
# write manual
manual(overwrite=TRUE, path = "")
# run examples and spell check
# run_examples() # not using
spell_check()
# check locally
check(cran=TRUE)
# test on r-devel
check_win_devel()
# rhub version, windows with development R
# rhub::validate_email() # may need to validate e-mail with rhub prior to running check
rhub::check(platform = "windows-x86_64-devel")
# install()
# test code coverage
source("tests/testthat/tests_1_5.R") # no errors
# check code coverage
library(covr)
library(DT)
x<-package_coverage(quiet = FALSE)
report(x)
# tidy code
# library(formatR)
# tidy_source(arrow=TRUE,width.cutoff = 60)
# check reverse dependencies (make sure to run on clean workspace)
rm(list=ls())
devtools::revdep()
library(revdepcheck)
revdep_check()
revdep_reset()
## Build documentation:
pkgdown::build_site()
# release to CRAN
release()
# badges currently broken for readme
# [![CRAN Status](http://www.r-pkg.org/badges/version/rpostgis)](https://CRAN.R-project.org/package=rpostgis)
# [![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
# ![](https://cranlogs.r-pkg.org/badges/rpostgis)