Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Jan 23, 2024
1 parent 0e8e72c commit 5a87753
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
linters: linters_with_defaults(
line_length_linter = line_length_linter(120),
line_length_linter = line_length_linter(130),
cyclocomp_linter = NULL,
object_usage_linter = NULL
)
44 changes: 22 additions & 22 deletions R/ard_proportion_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' @examples
#' ard_proportion_ci(mtcars, variables = c(vs, am), method = "wilson")
ard_proportion_ci <- function(data, variables, by = dplyr::group_vars(data),
conf.level = 0.95,
conf.level = 0.95, # nolint
strata,
weights = NULL,
max.iterations = 10,
Expand All @@ -52,27 +52,27 @@ ard_proportion_ci <- function(data, variables, by = dplyr::group_vars(data),
~ list(
prop_ci =
switch(method,

Check warning on line 54 in R/ard_proportion_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/ard_proportion_ci.R,line=54,col=10,[indentation_linter] Indentation should be 8 spaces but is 10 spaces.
"waldcc" = \(x, ...) proportion_ci_wald(x, conf.level = conf.level, correct = TRUE),
"wald" = \(x, ...) proportion_ci_wald(x, conf.level = conf.level, correct = FALSE),
"wilsoncc" = \(x, ...) proportion_ci_wilson(x, conf.level = conf.level, correct = TRUE),
"wilson" = \(x, ...) proportion_ci_wilson(x, conf.level = conf.level, correct = FALSE),
"clopper-pearson" = \(x, ...) proportion_ci_clopper_pearson(x, conf.level = conf.level),
"agresti-coull" = \(x, ...) proportion_ci_agresti_coull(x, conf.level = conf.level),
"jeffreys" = \(x, ...) proportion_ci_jeffreys(x, conf.level = conf.level),
"strat_wilsoncc" = \(x, data, ...) {
proportion_ci_strat_wilson(x,
strata = data[[strata]], weights = weights,
max.iterations = max.iterations,
conf.level = conf.level, correct = TRUE
)
},
"strat_wilson" = \(x, data, ...) {
proportion_ci_strat_wilson(x,
strata = data[[strata]], weights = weights,
max.iterations = max.iterations,
conf.level = conf.level, correct = FALSE
)
}
"waldcc" = \(x, ...) proportion_ci_wald(x, conf.level = conf.level, correct = TRUE),

Check warning on line 55 in R/ard_proportion_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/ard_proportion_ci.R,line=55,col=17,[indentation_linter] Indentation should be 10 spaces but is 17 spaces.
"wald" = \(x, ...) proportion_ci_wald(x, conf.level = conf.level, correct = FALSE),
"wilsoncc" = \(x, ...) proportion_ci_wilson(x, conf.level = conf.level, correct = TRUE),
"wilson" = \(x, ...) proportion_ci_wilson(x, conf.level = conf.level, correct = FALSE),
"clopper-pearson" = \(x, ...) proportion_ci_clopper_pearson(x, conf.level = conf.level),
"agresti-coull" = \(x, ...) proportion_ci_agresti_coull(x, conf.level = conf.level),
"jeffreys" = \(x, ...) proportion_ci_jeffreys(x, conf.level = conf.level),
"strat_wilsoncc" = \(x, data, ...) {
proportion_ci_strat_wilson(x,
strata = data[[strata]], weights = weights,

Check warning on line 64 in R/ard_proportion_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/ard_proportion_ci.R,line=64,col=46,[indentation_linter] Indentation should be 14 spaces but is 46 spaces.
max.iterations = max.iterations,
conf.level = conf.level, correct = TRUE
)

Check warning on line 67 in R/ard_proportion_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/ard_proportion_ci.R,line=67,col=19,[indentation_linter] Indentation should be 12 spaces but is 19 spaces.
},
"strat_wilson" = \(x, data, ...) {
proportion_ci_strat_wilson(x,
strata = data[[strata]], weights = weights,

Check warning on line 71 in R/ard_proportion_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/ard_proportion_ci.R,line=71,col=46,[indentation_linter] Indentation should be 14 spaces but is 46 spaces.
max.iterations = max.iterations,
conf.level = conf.level, correct = FALSE
)

Check warning on line 74 in R/ard_proportion_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/ard_proportion_ci.R,line=74,col=19,[indentation_linter] Indentation should be 12 spaces but is 19 spaces.
}
)

Check warning on line 76 in R/ard_proportion_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/ard_proportion_ci.R,line=76,col=10,[indentation_linter] Indentation should be 8 spaces but is 10 spaces.
)
) |>
Expand Down

0 comments on commit 5a87753

Please sign in to comment.