Skip to content

Commit e92f003

Browse files
authored
Minor maintenance updates (#562)
* re-document with roxygen2 v8.0.0 * fix `R CMD check` note mentioned in <#558 (comment)> * account for `packageVersion("glmnet") >= "5.0"`
1 parent 0eea28b commit e92f003

20 files changed

Lines changed: 71 additions & 46 deletions

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ Additional_repositories:
9090
https://stan-dev.r-universe.dev/
9191
LazyData: TRUE
9292
Roxygen: list(markdown = TRUE)
93-
RoxygenNote: 7.3.3
9493
VignetteBuilder: knitr, rmarkdown
94+
Config/roxygen2/version: 8.0.0

R/methods.R

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#' the draws, while the aleatoric uncertainty from the data model is
2020
#' not included. However, the estimated means of both methods averaged
2121
#' across draws should be very similar.
22-
#'
22+
#'
2323
#' The [proj_linpred()] function draws from the projected posterior of the
2424
#' linear predictors, that is, draws before applying any link functions
2525
#' or other transformations. These linear predictors can also be
@@ -639,6 +639,11 @@ proj_predict_aux <- function(proj, newdata, offsetnew, weightsnew,
639639
return(structure(pppd_out, cats = cats_aug))
640640
}
641641

642+
# Needed to avoid a NOTE in `R CMD check`:
643+
if (getRversion() >= package_version("2.15.1")) {
644+
utils::globalVariables("fontsize")
645+
}
646+
642647
#' Plot predictive performance
643648
#'
644649
#' This is the [plot()] method for `vsel` objects (returned by [varsel()] or
@@ -1158,9 +1163,9 @@ plot.vsel <- function(
11581163
x_color_txt <- "black"
11591164
}
11601165
pp <- pp +
1161-
if (packageVersion("ggplot2") < "4.0.0") {
1166+
if (utils::packageVersion("ggplot2") < "4.0.0") {
11621167
geom_text(aes(y = -Inf, label = .data[["size_chr"]]), vjust = -0.5,
1163-
color = x_color_txt)
1168+
color = x_color_txt)
11641169
} else {
11651170
geom_text(aes(y = -Inf, label = .data[["size_chr"]],
11661171
size = from_theme(fontsize * 0.7)),

man/as.matrix.projection.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/as_draws_matrix.projection.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cl_agg.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cv_varsel.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/df_binom.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/df_gaussian.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/extend_family.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mesquite.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)