11876: Build R SDK reference pages for doc site
[arvados.git] / build / run-tests.sh
index 4ebaf07c13e5ae37a8cb70124a4870fda726b1ef..ec3c4637703abdd4749d6efd00980f854c6ee02f 100755 (executable)
@@ -249,6 +249,8 @@ sanity_checks() {
     R -q -e "library('testthat')" || fatal "No testthat. Try: apt-get install r-cran-testthat"
     # needed for roxygen2, needed for devtools, needed for R sdk
     pkg-config --exists libxml-2.0 || fatal "No libxml2. Try: apt-get install libxml2-dev"
+    # needed for pkgdown, builds R SDK doc pages
+    which pandoc || fatal "No pandoc. Try: apt-get install pandoc"
 }
 
 rotate_logfile() {
@@ -786,6 +788,9 @@ if (!requireNamespace("devtools")) {
 if (!requireNamespace("roxygen2")) {
   install.packages("roxygen2")
 }
+if (!requireNamespace("pkgdown")) {
+  devtools::install_github("hadley/pkgdown")
+}
 devtools::install_dev_deps()
 EOF
 }