Skip to content

Commit

Permalink
reverse compatibility for print
Browse files Browse the repository at this point in the history
  • Loading branch information
TGuillerme committed Oct 22, 2024
1 parent 85e02da commit be389a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/print.dispRity.R
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ print.dispRity <- function(x, all = FALSE, ...) {
if(x$call$bootstrap[[2]] == "covar") {
cat(paste0("Data is based on ", length(x$covar[[1]]), " posterior sample", ifelse(length(x$covar[[1]]) > 1, "s","")))
} else {
cat(paste(ifelse(x$call$bootstrap[[4]] == "dist", "Rows and columns",paste(toupper(substr(x$call$bootstrap[[4]], 1, 1)), substr(x$call$bootstrap[[4]], 2, nchar(x$call$bootstrap[[4]])), sep="")), " were bootstrapped ", x$call$bootstrap[[1]], " times (method:\"", x$call$bootstrap[[2]], "\")", sep = ""))
if(!is.null(x$call$bootstrap[[4]])) {
cat(paste(ifelse(x$call$bootstrap[[4]] == "dist", "Rows and columns",paste(toupper(substr(x$call$bootstrap[[4]], 1, 1)), substr(x$call$bootstrap[[4]], 2, nchar(x$call$bootstrap[[4]])), sep="")), " were bootstrapped ", x$call$bootstrap[[1]], " times (method:\"", x$call$bootstrap[[2]], "\")", sep = ""))
} else {
cat(paste("Rows were bootstrapped ", x$call$bootstrap[[1]], " times (method:\"", x$call$bootstrap[[2]], "\")", sep = ""))
}
}
}
if(!is.null(x$call$bootstrap[[3]])) {
Expand Down

0 comments on commit be389a8

Please sign in to comment.