Skip to content

Commit

Permalink
Corrected typo in deprecation messages for `impute_covariance_matrix(…
Browse files Browse the repository at this point in the history
…)` and `pattern_covariance_matrix()`.
  • Loading branch information
jepusto committed Aug 16, 2024
1 parent 5ffc971 commit 4443913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# clubSandwich 0.5.11.9999

* Corrected typo in deprecation messages for `impute_covariance_matrix()` and `pattern_covariance_matrix()`.

# clubSandwich 0.5.11

* Corrected a unit test related to the plm package, for compatibility with upcoming release of plm.
Expand Down
4 changes: 2 additions & 2 deletions R/rma-mv.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impute_covariance_matrix <- function(vi, cluster, r, ti, ar1,
return_list = identical(as.factor(cluster), sort(as.factor(cluster))),
check_PD = TRUE) {

lifecycle::deprecate_soft("0.5.11", "impute_covariance_matrix()", "metaffor::vcalc()")
lifecycle::deprecate_soft("0.5.11", "impute_covariance_matrix()", "metafor::vcalc()")

cluster <- droplevels(as.factor(cluster))

Expand Down Expand Up @@ -301,7 +301,7 @@ pattern_covariance_matrix <- function(vi, cluster, pattern_level, r_pattern, r,
return_list = identical(as.factor(cluster), sort(as.factor(cluster))),
check_PD = TRUE) {

lifecycle::deprecate_soft("0.5.11", "impute_covariance_matrix()", "metaffor::vcalc()")
lifecycle::deprecate_soft("0.5.11", "impute_covariance_matrix()", "metafor::vcalc()")

if (missing(pattern_level)) stop("You must specify a vector for pattern_level.")
if (any(is.na(pattern_level[!is.na(vi)]))) stop("The pattern_level vector cannot have missing values.")
Expand Down

0 comments on commit 4443913

Please # to comment.