A speedrun.com API wrapper for R https://jemus42.github.io/speedrunr/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
671 B

  1. #! /usr/bin/env Rscript
  2. if (!("usethis" %in% installed.packages())) install.packages("usethis")
  3. if (!("devtools" %in% installed.packages())) install.packages("devtools")
  4. if (!("pkgdown" %in% installed.packages())) install.packages("pkgdown")
  5. if (!("git2r" %in% installed.packages())) install.packages("git2r")
  6. usethis::use_tidy_style()
  7. usethis::use_tidy_description()
  8. source("data-raw/update_data.R")
  9. devtools::document(roclets = c('rd', 'collate', 'namespace', 'vignette'))
  10. devtools::build()
  11. devtools::reload()
  12. devtools::test()
  13. pkgdown::build_site()
  14. repo <- git2r::repository(".")
  15. git2r::add(repo, "*")
  16. git2r::commit(repo, message = "Rebuild everything", all = TRUE)