Skip to content

Commit 7fb285a

Browse files
committed
Fix lintr errors
1 parent 94c6d7a commit 7fb285a

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

R/internal.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@
278278
average = 100 *
279279
as.numeric(stats::prop.test(x, n)$estimate),
280280
se = abs(average -
281-
(100 * as.numeric(stats::prop.test(x, n)$conf.int)[1])
282-
)) %>%
281+
(100 * as.numeric(stats::prop.test(x, n)$conf.int)[1])
282+
)) %>%
283283
dplyr::ungroup()
284284

285285
# To create ellipsis shape and avoid overlapping between both of them,

R/internal_winOdds.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
wins <- calcs_lst[[i]]$wins
7878
nm <- c("value", "LCL", "UCL", "p value")
7979
f <- rbind(data.frame(setNames(wins$WO, nm), "method" = "win odds"),
80-
data.frame(setNames(wins$WR1, nm), "method" = "win ratio"))
80+
data.frame(setNames(wins$WR1, nm), "method" = "win ratio"))
8181
f$GROUP <- labs[i]
8282
return(f)
8383
}))

R/winOddsPlots.R

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ cumulative_plot <- function(x, ...) {
169169
}
170170

171171
#' @export
172-
cumulative_plot.default <- function(x,
173-
...) {
172+
cumulative_plot.default <- function(x, ...) {
174173
paste0("cumulative_plot() function can only handle inputs of class ",
175174
"'hce' or 'maraca'. Your input has class ", class(x), ".")
176175
}
@@ -209,9 +208,7 @@ cumulative_plot.default <- function(x,
209208
#' cumulative_plot(maraca_dat)
210209
#'
211210
#' @export
212-
cumulative_plot.maraca <- function(x,
213-
theme = "maraca",
214-
...) {
211+
cumulative_plot.maraca <- function(x, theme = "maraca", ...) {
215212

216213
# Check that win odds were calculated for the maraca object
217214
if (is.null(x[["wins_forest"]]) || is.null(x[["wo_bar"]])) {
@@ -279,11 +276,11 @@ cumulative_plot.maraca <- function(x,
279276
#' @export
280277
#'
281278
cumulative_plot.hce <- function(x, last_outcome = "C",
282-
arm_levels = c(active = "A", control = "P"),
283-
fixed_followup_days = NULL,
284-
theme = "maraca",
285-
continuous_outcome = lifecycle::deprecated(),
286-
...) {
279+
arm_levels = c(active = "A", control = "P"),
280+
fixed_followup_days = NULL,
281+
theme = "maraca",
282+
continuous_outcome = lifecycle::deprecated(),
283+
...) {
287284

288285
# Create maraca object
289286
maraca_dat <- .maraca_from_hce_data(x, last_outcome, arm_levels,

0 commit comments

Comments
 (0)