Skip to content

Commit

Permalink
fix print issue
Browse files Browse the repository at this point in the history
  • Loading branch information
max-pilz committed Apr 3, 2024
1 parent 3cdde2b commit 2bc389a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by roxygen2: do not edit by hand

S3method(print, TwoStageDesignSummary)
S3method(print, adoptrOptimizationResult)
export(AverageN2)
export(Binomial)
export(ConditionalPower)
Expand Down
9 changes: 3 additions & 6 deletions R/minimize.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ minimize <- function(
return(res)
}


#' @rawNamespace S3method(print, adoptrOptimizationResult)
print.adoptrOptimizationResult <- function(x, ...) {
cat(design2str(x$design, TRUE), "\n")
}

setClass("adoptrOptimizationResult")
setMethod("print", signature("adoptrOptimizationResult"),
function(x, ...) cat(design2str(x$design, TRUE), "\n"))



Expand Down

0 comments on commit 2bc389a

Please sign in to comment.