aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-10-25 00:37:42 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2019-10-25 02:03:54 +0200
commit0a3eb0893cb4bd1b12f07a79069d1c7f5e991495 (patch)
tree1bf0ffeb710b3438fee224d0a657606b4c36b495 /GNUmakefile
parent053bf27d3f265c7a7378e2df3e00cf891e0d1bb2 (diff)
Use roxygen for functions and methods
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 231273c1..a98129e0 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -39,11 +39,14 @@ $(TGZ): $(pkgfiles) vignettes
$(RM) Rplots.pdf
"$(RBIN)/R" CMD build . 2>&1 | tee build.log
+roxygen:
+ "$(RBIN)/Rscript" -e 'devtools::document()'
+
$(TGZVNR): $(pkgfiles)
"$(RBIN)/R" CMD build . --no-build-vignettes;\
mv $(TGZ) $(TGZVNR)
-build: $(TGZ)
+build: roxygen $(TGZ)
build-no-vignettes: $(TGZVNR)
@@ -53,10 +56,10 @@ install: build
quickinstall: build-no-vignettes
"$(RBIN)/R" CMD INSTALL $(TGZVNR)
-check: build
+check: roxygen build
_R_CHECK_CRAN_INCOMING_REMOTE_=false "$(RBIN)/R" CMD check --as-cran --no-tests $(TGZ) 2>&1 | tee check.log
-quickcheck: build-no-vignettes
+quickcheck: roxygen build-no-vignettes
mv $(TGZVNR) $(TGZ)
"$(RBIN)/R" CMD check --no-tests --no-build-vignettes --no-vignettes $(TGZ)
mv $(TGZ) $(TGZVNR)

Contact - Imprint