Skip to content

Commit df02409

Browse files
committed
chore: lintr using quotes rule with double column and period at the end
1 parent 162b917 commit df02409

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

R/tm_a_regression.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ srv_a_regression <- function(id,
465465
teal.reporter::teal_card(obj),
466466
teal.reporter::teal_card("## Module's code")
467467
)
468-
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr")') # nolint quotes
468+
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr")') # nolint: quotes.
469469
})
470470

471471
anl_merged_q <- reactive({

R/tm_data_table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ srv_data_table <- function(id,
310310
teal::validate_has_data(df, min_nrow = 1L, msg = paste("data", dataname, "is empty"))
311311
qenv <- teal.code::eval_code(
312312
data(),
313-
'library("dplyr");library("DT")' # nolint quotes
313+
'library("dplyr");library("DT")'# nolint: quotes.
314314
)
315315
teal.code::eval_code(
316316
qenv,

R/tm_g_association.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ srv_tm_g_association <- function(id,
349349
teal.reporter::teal_card(obj),
350350
teal.reporter::teal_card("## Module's code")
351351
)
352-
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr");library("ggmosaic")') # nolint quotes
352+
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr");library("ggmosaic")')# nolint: quotes.
353353
})
354354
anl_merged_q <- reactive({
355355
req(anl_merged_input())

R/tm_g_distribution.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ srv_distribution <- function(id,
537537
)
538538

539539
qenv <- reactive(
540-
teal.code::eval_code(data(), 'library("ggplot2");library("dplyr")') # nolint quotes
540+
teal.code::eval_code(data(), 'library("ggplot2");library("dplyr")')# nolint: quotes.
541541
)
542542

543543
anl_merged_q <- reactive({
@@ -667,7 +667,7 @@ srv_distribution <- function(id,
667667
"Group by variable must be `factor`, `character`, or `integer`"
668668
)
669669
)
670-
qenv <- teal.code::eval_code(qenv, 'library("forcats")') # nolint quotes
670+
qenv <- teal.code::eval_code(qenv, 'library("forcats")')# nolint: quotes.
671671
qenv <- teal.code::eval_code(
672672
qenv,
673673
substitute(
@@ -685,7 +685,7 @@ srv_distribution <- function(id,
685685
)
686686
)
687687

688-
qenv <- teal.code::eval_code(qenv, 'library("forcats")') # nolint quotes
688+
qenv <- teal.code::eval_code(qenv, 'library("forcats")')# nolint: quotes.
689689
qenv <- teal.code::eval_code(
690690
qenv,
691691
substitute(
@@ -895,7 +895,7 @@ srv_distribution <- function(id,
895895
}
896896

897897
if (length(t_dist) != 0 && main_type_var == "Density" && length(g_var) == 0 && length(s_var) == 0) {
898-
qenv <- teal.code::eval_code(qenv, 'library("ggpp")') # nolint quotes
898+
qenv <- teal.code::eval_code(qenv, 'library("ggpp")')# nolint: quotes.
899899
qenv <- teal.code::eval_code(
900900
qenv,
901901
substitute(
@@ -1041,7 +1041,7 @@ srv_distribution <- function(id,
10411041
)
10421042

10431043
if (length(t_dist) != 0 && length(g_var) == 0 && length(s_var) == 0) {
1044-
qenv <- teal.code::eval_code(qenv, 'library("ggpp")') # nolint quotes
1044+
qenv <- teal.code::eval_code(qenv, 'library("ggpp")')# nolint: quotes.
10451045
qenv <- teal.code::eval_code(
10461046
qenv,
10471047
substitute(
@@ -1237,7 +1237,7 @@ srv_distribution <- function(id,
12371237
qenv <- common_q()
12381238

12391239
if (length(s_var) == 0 && length(g_var) == 0) {
1240-
qenv <- teal.code::eval_code(qenv, 'library("generics")') # nolint quotes
1240+
qenv <- teal.code::eval_code(qenv, 'library("generics")')# nolint: quotes.
12411241
qenv <- teal.code::eval_code(
12421242
qenv,
12431243
substitute(
@@ -1251,7 +1251,7 @@ srv_distribution <- function(id,
12511251
)
12521252
)
12531253
} else {
1254-
qenv <- teal.code::eval_code(qenv, 'library("tidyr")') # nolint quotes
1254+
qenv <- teal.code::eval_code(qenv, 'library("tidyr")')# nolint: quotes.
12551255
qenv <- teal.code::eval_code(
12561256
qenv,
12571257
substitute(

R/tm_g_response.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ srv_g_response <- function(id,
390390
)
391391

392392
qenv <- reactive(
393-
teal.code::eval_code(data(), 'library("ggplot2");library("dplyr")') # nolint quotes
393+
teal.code::eval_code(data(), 'library("ggplot2");library("dplyr")')# nolint: quotes.
394394
)
395395

396396
anl_merged_q <- reactive({

R/tm_g_scatterplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ srv_g_scatterplot <- function(id,
591591
teal.reporter::teal_card(obj),
592592
teal.reporter::teal_card("## Module's code")
593593
)
594-
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr")') # nolint quotes
594+
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr")')# nolint: quotes.
595595
})
596596

597597
anl_merged_q <- reactive({

R/tm_g_scatterplotmatrix.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ srv_g_scatterplotmatrix <- function(id,
371371

372372
# check character columns. If any, then those are converted to factors
373373
check_char <- vapply(ANL[, cols_names], is.character, logical(1))
374-
qenv <- teal.code::eval_code(qenv, 'library("dplyr")') # nolint quotes
374+
qenv <- teal.code::eval_code(qenv, 'library("dplyr")')# nolint: quotes.
375375
if (any(check_char)) {
376376
qenv <- teal.code::eval_code(
377377
qenv,

R/tm_missing_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ srv_missing_data <- function(id,
534534
)
535535

536536
qenv <- teal.code::eval_code(obj, {
537-
'library("dplyr");library("ggplot2");library("tidyr");library("gridExtra")' # nolint quotes
537+
'library("dplyr");library("ggplot2");library("tidyr");library("gridExtra")'# nolint: quotes.
538538
})
539539

540540
qenv <- if (!is.null(selected_vars()) && length(selected_vars()) != ncol(anl)) {
@@ -1120,7 +1120,7 @@ srv_missing_data <- function(id,
11201120
qenv <- if (!is.null(group_var)) {
11211121
common_code_libraries_q <- teal.code::eval_code(
11221122
qenv,
1123-
'library("forcats");library("glue");' # nolint quotes
1123+
'library("forcats");library("glue");'# nolint: quotes.
11241124
)
11251125
teal.code::eval_code(
11261126
common_code_libraries_q,

R/tm_outliers.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,10 @@ srv_outliers <- function(id, data, outlier_var,
446446
teal.code::eval_code(
447447
data(),
448448
paste0(
449-
'library("dplyr");library("tidyr");', # nolint quotes
449+
'library("dplyr");library("tidyr");',# nolint: quotes.
450450
'library("tibble");library("ggplot2");'
451451
)
452-
) %>% # nolint quotes
452+
) %>%# nolint: quotes.
453453
teal.code::eval_code(as.expression(anl_merged_input()$expr))
454454
})
455455

R/tm_t_crosstable.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ srv_t_crosstable <- function(id, data, label, x, y, remove_zero_columns, basic_t
331331
obj <- data()
332332
teal.reporter::teal_card(obj) <- append(teal.reporter::teal_card(obj), "# Cross Table", after = 0)
333333
teal.reporter::teal_card(obj) <- c(teal.reporter::teal_card(obj), "## Module's code")
334-
teal.code::eval_code(obj, 'library("rtables");library("tern");library("dplyr")') # nolint quotes
334+
teal.code::eval_code(obj, 'library("rtables");library("tern");library("dplyr")')# nolint: quotes.
335335
})
336336
anl_merged_q <- reactive({
337337
req(anl_merged_input())

0 commit comments

Comments
 (0)