Skip to content

Commit

Permalink
Replace texmex example, to avoid CRAN package check ERROR in texmex
Browse files Browse the repository at this point in the history
  • Loading branch information
paulnorthrop committed Feb 25, 2024
1 parent 37005af commit 464edef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
18 changes: 10 additions & 8 deletions R/anova.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,21 @@
#' anova(adj1, adj0)
#' }
#'
#' got_texmex <- requireNamespace("texmex", quietly = TRUE)
#' if (got_texmex) {
#' library(texmex)
#' large <- evm(temp, ow, gev, mu = ~ loc, phi = ~ loc, xi = ~loc)
#' medium <- evm(temp, ow, gev, mu = ~ loc, phi = ~ loc)
#' small <- evm(temp, ow, gev, mu = ~ loc)
#' tiny <- evm(temp, ow, gev)
#' adj_large<- alogLik(large, cluster = ow$year)
#' got_extRemes <- requireNamespace("extRemes", quietly = TRUE)
#' if (got_extRemes) {
#' library(extRemes)
#' large <- fevd(temp, ow, location.fun = ~ ow$loc, scale.fun = ~ ow$loc,
#' shape.fun = ~ ow$loc)
#' medium <- fevd(temp, ow, location.fun = ~ ow$loc, scale.fun = ~ ow$loc)
#' small <- fevd(temp, ow, location.fun = ~ ow$loc)
#' tiny <- fevd(temp, ow)
#' adj_large <- alogLik(large, cluster = ow$year)
#' adj_medium <- alogLik(medium, cluster = ow$year)
#' adj_small <- alogLik(small, cluster = ow$year)
#' adj_tiny <- alogLik(tiny, cluster = ow$year)
#' anova(adj_large, adj_medium, adj_small, adj_tiny)
#' }

#' @export
anova.lax <- function (object, object2, ...) {
if (missing(object)) {
Expand Down
17 changes: 9 additions & 8 deletions man/anova.lax.Rd

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

0 comments on commit 464edef

Please sign in to comment.