From f88c47bf9c94c24d90e089423f5bfaebde38c62b Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 8 Dec 2016 08:45:55 +0100 Subject: Documentation and Makefile improvements - Fix the remaining links to static docs on r-forge in README - Build mkin_*.tar.gz packages in current directory - check and test (test.log unchanged) --- .Rbuildignore | 1 + .gitignore | 1 + GNUmakefile | 15 ++++++--------- README.html | 6 +++--- README.md | 6 +++--- build.log | 9 +++++++-- check.log | 10 ++-------- vignettes/FOCUS_Z.pdf | Bin 239561 -> 239559 bytes 8 files changed, 23 insertions(+), 25 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index c491eb32..359e5879 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -25,3 +25,4 @@ ^vignettes/FOCUS_Z.tex$ ^vignettes/mkin.tex$ ^_pkgdown.yml$ +^mkin_.*\.tar\.gz diff --git a/.gitignore b/.gitignore index 06973a0b..a2664163 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ vignettes/*_files/ mkin.Rcheck install.log test.R +mkin*.tar.gz diff --git a/GNUmakefile b/GNUmakefile index 1d986246..f41c2d3f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,8 +1,8 @@ PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION) PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION) PKGSRC := $(shell basename $(PWD)) -TGZ := ../$(PKGSRC)_$(PKGVERS).tar.gz -TGZVNR := ../$(PKGSRC)_$(PKGVERS)-vignettes-not-rebuilt.tar.gz +TGZ := $(PKGSRC)_$(PKGVERS).tar.gz +TGZVNR := $(PKGSRC)_$(PKGVERS)-vignettes-not-rebuilt.tar.gz # Specify the directory holding R binaries. To use an alternate R build (say a # pre-prelease version) use `make RBIN=/path/to/other/R/` or `export RBIN=...` @@ -32,13 +32,10 @@ pkgfiles = \ all: build $(TGZ): $(pkgfiles) vignettes - cd ..;\ - "$(RBIN)/R" CMD build $(PKGSRC) 2>&1 | tee $(PKGNAME)/build.log + "$(RBIN)/R" CMD build . 2>&1 | tee build.log $(TGZVNR): $(pkgfiles) - cd ..;\ - "$(RBIN)/R" CMD build $(PKGSRC) --no-build-vignettes;\ - cd $(PKGSRC);\ + "$(RBIN)/R" CMD build . --no-build-vignettes;\ mv $(TGZ) $(TGZVNR) build: $(TGZ) @@ -52,7 +49,7 @@ quickinstall: build-no-vignettes "$(RBIN)/R" CMD INSTALL $(TGZVNR) check: build - "$(RBIN)/R" CMD check --as-cran --no-tests $(TGZ) + "$(RBIN)/R" CMD check --as-cran --no-tests $(TGZ) 2>&1 | tee check.log quickcheck: build-no-vignettes mv $(TGZVNR) $(TGZ) @@ -117,7 +114,7 @@ drat: build "$(RBIN)/Rscript" -e "drat::insertPackage('$(TGZ)', commit = TRUE)" submit: - @echo "\nHow about make test, make check, make winbuilder" + @echo "\nHow about make test, make check, make pd, make winbuilder" @echo "\nIs the DESCRIPTION file up to date?" @echo "\nIs the NEWS.md file up to date?" @echo "\nAre you sure you want to release to CRAN?" diff --git a/README.html b/README.html index 72406092..a661505d 100644 --- a/README.html +++ b/README.html @@ -143,9 +143,9 @@ $(document).ready(function () {

Features