-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.R
42 lines (26 loc) · 833 Bytes
/
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
## https://www.tidyverse.org/articles/2017/12/workflow-vs-script/
## Clears Everything...start fresh.
## rm(list=ls(all=T));cat("\014");dev.off()
# -------------------------------------------------------------------------
# https://johnmuschelli.com/smi_2019/index.html#78
## To build the package
library(roxygen2)
library(roxygen2md)
library(pkgdown)
## Process a package
roxygen2::roxygenise()
## Convert from Rd to Markdown
roxygen2md::roxygen2md()
devtools::document()
#devtools::test(); # makes testthat directory and runs tests
# devtools::check()
##
# devtools::check_rhub()
# NEWs file
# usethis::use_news_md()
## Builds package down webpage
pkgdown::build_site()
## Builds package
# devtools::build(vignettes=F)
# devtools::build()
# -------------------------------------------------------------------------