Closed mpadge closed 2 years ago
That commit fixes the missing categorical (Bayesian) tags in the report. Previous version didn't work when all stats for a category were tagged "TODO", and none were yet done.
The second problem was a grep
issue which the above commit fxes:
z <- system.file ("extdata", "pkgstats_9.9.tar.gz", package = "pkgstats")
path <- pkgstats::extract_tarball (z)
library (srr)
packageVersion ("srr")
#> [1] '0.0.1.131'
f <- file.path (path, "R", "srr-stats.R")
s <- srr_stats_roxygen (category = "bayesian", filename = f)
#> ✔ Downloaded general standards
#> ✔ Downloaded bayesian standards
#> ℹ Roxygen2-formatted standards written to [srr-stats.R]
any (grepl ("BS[0-9]", readLines (f))) # Bayesian stats are there!
#> [1] TRUE
r <- srr_report (path, view = FALSE)
#> ℹ Loading pkgstats
#> ℹ 1 functions decorated with [[cpp11::register]]
#> ✔ generated file 'cpp11.R'
#> ✔ generated file 'cpp11.cpp'
#> ─ DONE (pkgstats)
#>
#> ✔ Downloaded general standards
#> ✔ Downloaded bayesian standards
#> processing file: file83d154033ed1.Rmd
#> output file: file83d154033ed1.knit.md
#>
#> Output created: /tmp/Rtmp6X3iak/file83d154033ed1.html
# Are Bayesian standards in report?
any (grepl ("BS[0-9]", r)) # yes!
#> [1] TRUE
# Any missing standards?
any (grepl ("Missing Standards", r))
#> [1] FALSE
Created on 2021-11-22 by the reprex package (v2.0.1.9000)
All okay now
The above commit adds the workflow as a test file
The following reprex copied from https://github.com/ropensci/statistical-software-review-book/issues/55 highlights a number of issues that need to be addressed here.
Created on 2021-11-22 by the reprex package (v2.0.1.9000)