Skip to content

Commit

Permalink
Fix noSuggests on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
doccstat committed Apr 22, 2024
1 parent d50416f commit e37292d
Show file tree
Hide file tree
Showing 38 changed files with 958 additions and 831 deletions.
13 changes: 7 additions & 6 deletions R/fastcpd_class.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,16 @@ plot.fastcpd <- function( # nolint: cyclomatic complexity
ylab = NULL,
...
) {
# Plot the built in families only.
stopifnot(
"Built-in plot only works for built-in families." = x@family != "custom"
)
if (x@family == "custom") {
warning("Built-in plot should only work for built-in families.")
}
if (x@family == "mean" && ncol(x@data) > 1) {
stop("Can not plot mean change points with p > 1.")
warning("Can not plot mean change points with p > 1.")
return()
}
if (!require_namespace("ggplot2")) {
stop("ggplot2 is not installed. No plot is made.")
warning("ggplot2 is not installed. No plot is made.")
return()
}
n <- nrow(x@data)
family <- x@family
Expand Down
72 changes: 37 additions & 35 deletions man/bitcoin.Rd

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

207 changes: 108 additions & 99 deletions man/fastcpd.Rd

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

26 changes: 14 additions & 12 deletions man/fastcpd_binomial.Rd

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

Loading

0 comments on commit e37292d

Please sign in to comment.