Skip to content

Commit

Permalink
Merge pull request #275 from pharmaR/prep_0.1.3
Browse files Browse the repository at this point in the history
Prep for 0.2.0 release to cran
  • Loading branch information
emilliman5 authored Feb 22, 2023
2 parents 527c07a + 8d6a2ce commit 50d53c1
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
_R_CHECK_RD_VALIDATE_RD2HTML_: false

steps:
- uses: actions/checkout@v2
Expand All @@ -56,7 +57,11 @@ jobs:
with:
extra-packages: rcmdcheck

- uses: r-lib/actions/setup-tinytex@v2

- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--as-cran", "--no-manual")'

- name: Show testthat output
if: always()
Expand Down
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Package
Title: Risk Metrics to Evaluating R Packages
Description: Facilities for assessing R packages against a number of metrics to
help quantify their robustness.
Version: 0.1.2
Version: 0.2.0
Authors@R: c(
person("R Validation Hub", role = c("aut"), email = "[email protected]"),
person("Doug", "Kelkhoff", role = c("aut"), email = "[email protected]"),
Expand Down Expand Up @@ -35,8 +35,7 @@ Imports:
pillar,
tibble,
pkgload,
devtools,
qpdf
devtools
Suggests:
knitr,
rmarkdown,
Expand Down
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# riskmetric 0.2.0

- We now have a Hex Logo! #233. Thanks to @AARON-CLARK.
- Number of download assessment can now take a specified number of days. #258. Thanks to @parmsam-pfizer.
- A new assessment was added for determining the size of the codebase. #66. Thanks to @shengwei66.
- Fixed an issue of some scores returning negative numbers instead of values between [0,1]. Thanks to @emilliman5.
- A new assessment was added for the presens of a bug report URL for the package. Thanks to @kimjj93.
- A new assessment was added to score the dependency footprint of a package. Thanks to @emilliman5.

# riskmetric 0.1.2

- Hotfix release to correct testing suite such that tests are less continent on
Expand Down
15 changes: 0 additions & 15 deletions R/pkg_assess.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ roxygen_assess_family <- function(name,
"@examples assess_%s(pkg_ref(\"%s\"))"
}


if (!assess_func %in% getNamespaceExports(utils::packageName()) ||
!score_func %in% getNamespaceExports(utils::packageName())) {
stop(sprintf(
paste0(
"All assess_* functions must have a corresponding score.* method ",
"implemented.\n\n",
"To remove build errors, ensure that the following functions are ",
"implemented:\n\n",
" %s()\n",
" %s()\n"),
assess_func,
score_func))
}

c("@param x a \\code{pkg_ref} package reference object",
"@param ... additional arguments passed on to S3 methods, rarely used",
sprintf("@return a \\code{pkg_metric} containing %s", return_type),
Expand Down
24 changes: 12 additions & 12 deletions man/pkg_assess.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50d53c1

Please sign in to comment.