Browse Source

Add build script

master
Lukas Burk 2 years ago
parent
commit
7e8c4aa06e
Signed by: lukas <lukas@quantenbrot.de> GPG Key ID: 044E8B20BB186F81
2 changed files with 20 additions and 0 deletions
  1. +1
    -0
      .Rbuildignore
  2. +19
    -0
      build.R

+ 1
- 0
.Rbuildignore View File

@@ -10,3 +10,4 @@
^\.github$
^\.travis\.yml$
^codecov\.yml$
^build\.R$

+ 19
- 0
build.R View File

@@ -0,0 +1,19 @@
#! /usr/bin/env Rscript

if (!("usethis" %in% installed.packages())) install.packages("usethis")
if (!("devtools" %in% installed.packages())) install.packages("devtools")
if (!("pkgdown" %in% installed.packages())) install.packages("pkgdown")
if (!("git2r" %in% installed.packages())) install.packages("git2r")

usethis::use_tidy_style()
usethis::use_tidy_description()
source("data-raw/update_data.R")
devtools::document(roclets = c('rd', 'collate', 'namespace', 'vignette'))
devtools::build()
devtools::reload()
devtools::test()
pkgdown::build_site()

repo <- git2r::repository(".")
git2r::add(repo, "*")
git2r::commit(repo, message = "Rebuild everything", all = TRUE)

Loading…
Cancel
Save