Skip to content

Commit 4bc6f95

Browse files
authored
Merge pull request #280 from pharmaR/updates-per-cran
riskmetric 0.2.1 - Fix S3 Consistency
2 parents 50d53c1 + 82735c2 commit 4bc6f95

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
.DS_Store
2-
32
vignettes
43
!vignettes/*.Rmd
5-
64
inst/doc
75
docs
8-
96
.Rproj.user
107
.Rhistory
118
.RData
129
.Ruserdata
1310
.html
11+
riskmetric.Rproj

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Package
33
Title: Risk Metrics to Evaluating R Packages
44
Description: Facilities for assessing R packages against a number of metrics to
55
help quantify their robustness.
6-
Version: 0.2.0
6+
Version: 0.2.1
77
Authors@R: c(
88
person("R Validation Hub", role = c("aut"), email = "psi.aims.r.validation@gmail.com"),
99
person("Doug", "Kelkhoff", role = c("aut"), email = "doug.kelkhoff@gmail.com"),

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# riskmetric 0.2.1
2+
3+
- Updates for S3 Method consistancy for `vec_cast` and `pillar_shift` per CRAN
4+
comments.
5+
16
# riskmetric 0.2.0
27

38
- We now have a Hex Logo! #233. Thanks to @AARON-CLARK.

R/pkg_metric_error.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ format_assessment_message <- function(e, name, assessment) {
8787
#' @importFrom pillar pillar_shaft new_pillar_shaft_simple style_na
8888
#' @method pillar_shaft pkg_metric_error
8989
#' @export
90-
pillar_shaft.pkg_metric_error <- function(x) {
90+
pillar_shaft.pkg_metric_error <- function(x, ...) {
9191
pillar::new_pillar_shaft_simple(pillar::style_na(paste0(
9292
"<",
9393
gsub("pkg_metric_", "", class(x)[[1]]),

R/pkg_ref_class_format.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ vec_ptype_abbr.pkg_ref <- function(x, ...) {
5151
#' @importFrom vctrs vec_cast.character
5252
#' @method vec_cast.character list_of_pkg_ref
5353
#' @export
54-
vec_cast.character.list_of_pkg_ref <- function(x, to) {
54+
vec_cast.character.list_of_pkg_ref <- function(x, to, ...) {
5555
vapply(x, "[[", character(1L), "name")
5656
}
5757

R/vctrs_list_of_pkg_metric.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pillar_shaft.list_of_pkg_metric <- function(x, ...) {
2222
#' @importFrom vctrs vec_cast.double
2323
#' @method vec_cast.double list_of_pkg_metric
2424
#' @export
25-
vec_cast.double.list_of_pkg_metric <- function(x, to) {
25+
vec_cast.double.list_of_pkg_metric <- function(x, to, ...) {
2626
out <- vector("numeric", length(x))
2727
is_error <- vapply(x, inherits, logical(1L), "pkg_metric_error")
2828
out[is_error] <- NA_real_

0 commit comments

Comments
 (0)