Skip to content

Commit

Permalink
fix keyword quote lints
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Oct 26, 2023
1 parent bca974c commit f4c0697
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
18 changes: 9 additions & 9 deletions R/report.numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ report_parameters.numeric <- function(x,
}

text_full <- c(
"n_Obs" = text_n,
"Mean" = text_mean,
"Dispersion_Mean" = paste0("SD = ", text_sd),
"Median" = text_median,
"Dispersion_Median" = paste0("MAD = ", text_mad),
"Range" = paste0("range: ", text_range),
"Skewness" = text_skewness,
"Kurtosis" = text_kurtosis,
"Missing" = text_missing
n_Obs = text_n,
Mean = text_mean,
Dispersion_Mean = paste0("SD = ", text_sd),
Median = text_median,
Dispersion_Median = paste0("MAD = ", text_mad),
Range = paste0("range: ", text_range),
Skewness = text_skewness,
Kurtosis = text_kurtosis,
Missing = text_missing
)

# Shorten ---
Expand Down
6 changes: 3 additions & 3 deletions R/report.sessionInfo.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ report_table.sessionInfo <- function(x, include_R = TRUE, ...) {
}

data <- data.frame(
"Package" = names,
"Version" = versions,
"Reference" = citations,
Package = names,
Version = versions,
Reference = citations,
stringsAsFactors = FALSE
)

Expand Down
18 changes: 9 additions & 9 deletions R/report_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ print.report_info <- function(x, ...) {

ci_method <- tolower(ci_method)
string_method <- switch(ci_method,
"bci" = ,
"bcai" = "bias-corrected accelerated bootstrap",
"si" = ,
"ci" = ,
"quantile" = ,
"eti" = ,
"hdi" = ifelse(isTRUE(bootstrap), "na\u0131ve bootstrap", "MCMC"),
"normal" = "Wald normal",
"boot" = "parametric bootstrap",
bci = ,
bcai = "bias-corrected accelerated bootstrap",
si = ,
ci = ,
quantile = ,
eti = ,
hdi = ifelse(isTRUE(bootstrap), "na\u0131ve bootstrap", "MCMC"),
normal = "Wald normal",
boot = "parametric bootstrap",
"Wald"
)

Expand Down
4 changes: 2 additions & 2 deletions R/utils_combine_tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

# add performance
perf_vertical <- data.frame(
"Parameter" = perf_names,
"Fit" = as.numeric(performance[1, ]),
Parameter = perf_names,
Fit = as.numeric(performance[1, ]),
stringsAsFactors = FALSE
)

Expand Down

0 comments on commit f4c0697

Please sign in to comment.