(v2.1.1.9279) fix documentation, add foreign S3 exports to functions

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2025-05-16 16:55:29 +02:00
1 parent 139f79d372
commit 38cebc1541
24 files changed
+292 -239

No files matched your search

+4 -2
View File
@@ -401,7 +401,8 @@ ggplot_sir_predict <- function(x,
#' @method autoplot resistance_predict
#' @rdname resistance_predict
# will be exported using s3_register() in R/zzz.R
# this prevents the requirement for putting the dependency in Imports:
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(ggplot2::autoplot, resistance_predict)
autoplot.resistance_predict <- function(object,
main = paste("Resistance Prediction of", x_name),
ribbon = TRUE,
@@ -414,7 +415,8 @@ autoplot.resistance_predict <- function(object,
#' @method fortify resistance_predict
#' @noRd
# will be exported using s3_register() in R/zzz.R
# this prevents the requirement for putting the dependency in Imports:
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(ggplot2::fortify, resistance_predict)
fortify.resistance_predict <- function(model, data, ...) {
as.data.frame(model)
}