Skip to content

Commit 983cb2f

Browse files
committed
print documentation
1 parent 2f1fbd7 commit 983cb2f

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

R/outstandR.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ outstandR <- function(AC.IPD, BC.ALD, strategy, CI = 0.95, scale = NULL, ...) {
5151
if (!is.null(scale) & !any(scale %in% c("log_odds", "log_relative_risk", "risk_difference")))
5252
stop("scale not in available list.")
5353

54-
##TODO: as method instead?
5554
if (!inherits(strategy, "strategy"))
5655
stop("strategy argument must be a class strategy.")
5756

R/print.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11

2+
#' Print a Summary of a OutstandR Object
3+
#'
4+
#' This is a method for the function [print()] for objects of the
5+
#' class "outstandR" created by a call to [outstandR()]
6+
#'
7+
#' @param x Objects of the class "outstandR"
8+
#' @param ... Additional arguments passed to other methods
9+
#' @seealso [outstandR()]
210
#' @export
311
#'
412
print.outstandR <- function(x, ...) {
@@ -10,7 +18,7 @@ print.outstandR <- function(x, ...) {
1018
cat("Model:", pillar::style_subtle(attr(x, "model")), "\n")
1119
cat("Scale:", pillar::style_subtle(attr(x, "scale")), "\n")
1220
cat("Common treatment:", pillar::style_subtle("C"), "\n")
13-
# cat(pillar::style_subtle("Common treatment:"), attr(x, "reference"), "\n")
21+
# cat(pillar::style_subtle("Common treatment:"), attr(x, "reference"), "\n") ##TODO:
1422
cat("Individual patient data study:", pillar::style_subtle("AC"), "\n")
1523
cat("Aggregate level data study:", pillar::style_subtle("BC"), "\n")
1624
cat("Confidence interval level:", pillar::style_subtle(attr(x, "CI")), "\n\n")

man/print.outstandR.Rd

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)