Skip to content

Commit 801ca85

Browse files
committed
lintfix
1 parent f33264a commit 801ca85

13 files changed

Lines changed: 20 additions & 20 deletions

R/ae_forestplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ ae_forest_plot <-
246246
)
247247
})
248248
# Return single level list
249-
return(flatten(nested_plots))
249+
flatten(nested_plots)
250250
}
251251

252252
#' Highlight Significant p-value points in forest plot

R/ae_pre_processor.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ ae_pre_processor <- function(datain,
166166
################### ENDax SEV/CTC##############
167167

168168
# Return processed dataframe and filter conditions
169-
return(list(data = ungroup(data_pro), a_subset = filters))
169+
list(data = ungroup(data_pro), a_subset = filters)
170170
}
171171

172172
#' Create filter condition for Adverse Events from keyword

R/ae_volcano_plot.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ ae_volcano_plot <- function(datain,
194194
)
195195
)
196196
}
197-
return(gplot)
197+
gplot
198198
}
199199

200200
#' Volcano Plot axis Options
@@ -276,8 +276,8 @@ Favors {trt2_label} (N={N2}) --->\n{statistic}"
276276
}
277277
refval <- ifelse(grepl("Ratio", statistic), 1, 0)
278278
xref <- c(refval, refval - xref_offset, refval + xref_offset)
279-
return(list(
279+
list(
280280
xaxis_label = xlab, yaxis_label = ylab,
281281
ylinearopts = ylinearopts, yaxis_scale = ytrans, xref = xref
282-
))
282+
)
283283
}

R/bar_plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,5 @@ bar_plot <- function(datain,
147147
g_plot <- g_plot + coord_flip()
148148
}
149149
message("Bar Plot Success")
150-
return(g_plot)
150+
g_plot
151151
}

R/box_plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,5 @@ box_plot <- function(datain,
183183
)
184184
}
185185
message("Box Plot Success")
186-
return(g_plot)
186+
g_plot
187187
}

R/event_interval.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,5 @@ interval_plot <- function(datain,
168168
splotly$x$data[[i]]$legendgroup <- splotly$x$data[[i]]$name
169169
if (!legdf$is_first[[i]]) splotly$x$data[[i]]$showlegend <- FALSE
170170
}
171-
return(list(plot = gplot, ptly = splotly, rpt_data = ad_plot))
171+
list(plot = gplot, ptly = splotly, rpt_data = ad_plot)
172172
}

R/forest_plot.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ forest_plot_base <- function(datain,
135135
alpha = 0.5
136136
)
137137
}
138-
return(gplot)
138+
gplot
139139
}
140140

141141
#' Scatter plot to be included within forest plot
@@ -254,7 +254,7 @@ forest_plot_scatter <- function(datain,
254254
alpha = 0.5
255255
)
256256
}
257-
return(gplot)
257+
gplot
258258
}
259259

260260
#' Display combined Forest Plot
@@ -399,5 +399,5 @@ forest_display <- function(plot_list,
399399
rel_heights = c(0.85, 0.075, 0.075)
400400
)
401401
}
402-
return(combine_plot)
402+
combine_plot
403403
}

R/graph_utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ series_leg_lab <- function(datain,
638638
series_var = "TRTVAR",
639639
series_labelvar = "TRTTXT") {
640640
if (series_labelvar != series_var && is.factor(datain[[series_labelvar]])) {
641-
return(sort(unique(datain[[series_labelvar]])))
641+
sort(unique(datain[[series_labelvar]]))
642642
} else {
643-
return(waiver())
643+
waiver()
644644
}
645645
}

R/mcatstat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,5 +327,5 @@ calc_denom <- function(counts,
327327
df <- df |>
328328
mutate(CVALUE = ifelse(FREQ == 0, "0", glue(cstat)))
329329
}
330-
return(df |> ungroup())
330+
df |> ungroup()
331331
}

R/msumstat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,5 @@ msumstat <- function(datain = NULL,
163163
mutate(DPTVALN = as.numeric(fct_inorder(.data[["DPTVAL"]])))
164164

165165
message("msum success")
166-
return(list(tsum = data_long, gsum = data_wide))
166+
list(tsum = data_long, gsum = data_wide)
167167
}

0 commit comments

Comments
 (0)