From 3a579d87820ccbec514f1be5eb090e874fd87eec Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Tue, 22 Dec 2015 19:32:54 +0100 Subject: EFSA 2015 tier 1 PEC soil, clean up, add static docs --- GNUmakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 50de943..bd1e053 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -12,6 +12,7 @@ usage: @echo "" @echo " clean - Clean up." @echo " roxygen - Roxygenize." + @echo " sd - Build static documentation." @echo " build - Build source package." @echo " check - Run CRAN check on the package." @echo " install - Install the package." @@ -19,6 +20,7 @@ usage: pkgfiles = pkg/DESCRIPTION \ README.html \ pkg/inst/testdata/* \ + pkg/inst/staticdocs/index.r \ pkg/tests/testthat.R \ pkg/tests/testthat/* \ pkg/data/* \ @@ -34,6 +36,14 @@ roxygen: "$(R_HOME)/bin/Rscript" -e 'library(devtools); document("pkg")' @echo "DONE." +sd: roxygen + @echo "Building static documentation..." + # suppressWarnings to get rid of mbcsToSbcs warnings when plotting the 'ยต' character + cd pkg; "$(R_HOME)/bin/Rscript" -e 'suppressWarnings(staticdocs::build_site())' + # The following workaround (setting the pdf encoding) as of stackoverflow 13251665 did not do it + #cd pkg; "$(R_HOME)/bin/Rscript" -e 'pdf.options(encoding="ISOLatin1.enc"); staticdocs::build_site()' + @echo "DONE." + $(TGZ): $(pkgfiles) sed -i -e "s/Date:.*/Date: $(DATE)/" pkg/DESCRIPTION @echo "Roxygenizing package..." -- cgit v1.2.1