From 37b588b951d9a4cc37be8aebf904c033ba9c0bbc Mon Sep 17 00:00:00 2001 From: mpadge Date: Tue, 6 Sep 2022 10:29:50 +0200 Subject: [PATCH] fix #80 --- DESCRIPTION | 2 +- codemeta.json | 2 +- makefile | 21 ++++++++++++++++----- vignettes/autotest-control.Rmd | 2 +- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 09564d2..174104d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: autotest Title: Automatic Package Testing -Version: 0.0.2.197 +Version: 0.0.2.198 Authors@R: c( person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2172-5265")), diff --git a/codemeta.json b/codemeta.json index c73875f..ca557d4 100644 --- a/codemeta.json +++ b/codemeta.json @@ -8,7 +8,7 @@ "codeRepository": "https://github.com/ropensci-review-tools/autotest", "issueTracker": "https://github.com/ropensci-review-tools/autotest/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "0.0.2.197", + "version": "0.0.2.198", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", diff --git a/makefile b/makefile index 67c8a68..5b39eb6 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,26 @@ LFILE = README +VIGNETTE = autotest-control + +all: init vignette + +init: + echo "pkgdown::init_site()" | R --no-save -q + +vignette: + echo "pkgdown::build_article('$(VIGNETTE)',quiet=FALSE)" | R --no-save -q -all: knith #open knith: $(LFILE).Rmd echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).html')" | R --no-save -q knitr: $(LFILE).Rmd - echo "rmarkdown::render('$(LFILE).Rmd', output_format = rmarkdown::md_document (variant = 'gfm'))" | R --no-save -q + echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).md')" | R --no-save -q + +open: + xdg-open docs/articles/$(VIGNETTE).html & -open: $(LFILE).html - xdg-open $(LFILE).html & +check: + Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)' clean: - rm -rf *.html *.png README_cache + rm -rf docs/ *.html *.png README_cache diff --git a/vignettes/autotest-control.Rmd b/vignettes/autotest-control.Rmd index 4ac70ab..fd3064e 100644 --- a/vignettes/autotest-control.Rmd +++ b/vignettes/autotest-control.Rmd @@ -269,7 +269,7 @@ xt1 <- tibble::tibble ( ) ``` -And the `r length (which (xf$type == "dummy"))` tests yielded `r nrow (xt)` +And the `r length (which (xf$type == "dummy"))` tests yielded `r nrow (xt1)` unexpected responses. The best way to understand these results is to examine the object in detail, typically through `edit(xt)`, or equivalently in RStudio, clicking on the listed object. The different types of tests which produced