Skip to content

Commit

Permalink
Fix a couple of lints (#469)
Browse files Browse the repository at this point in the history
* init

* document, styler

---------

Co-authored-by: Daniel <[email protected]>
Co-authored-by: Rémi Thériault <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2024
1 parent 278d9f6 commit 084ed2e
Show file tree
Hide file tree
Showing 29 changed files with 10 additions and 86 deletions.
1 change: 0 additions & 1 deletion R/report.BFBayesFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ report.BFBayesFactor <- function(x, h0 = "H0", h1 = "H1", ...) {
}



#' @rdname report.BFBayesFactor
#' @export
report_statistics.BFBayesFactor <- function(x, table = NULL, ...) {
Expand Down
1 change: 0 additions & 1 deletion R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ as.report <- function(text, table = NULL, plot = NULL, ...) {
}



#' @rdname as.report
#' @export
is.report <- function(x) inherits(x, "report")
5 changes: 0 additions & 5 deletions R/report.aov.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ report_effectsize.aov <- function(x, ...) {
parameters <- paste0(interpretation, " (", statistics, ")")



as.report_effectsize(parameters,
summary = parameters,
table = table,
Expand Down Expand Up @@ -211,9 +210,6 @@ report_statistics.anova <- report_statistics.aov
report_statistics.aovlist <- report_statistics.aov





# report_parameters ------------------------------------------------------------


Expand Down Expand Up @@ -319,7 +315,6 @@ report_info.anova <- report_info.aov
report_info.aovlist <- report_info.aov



# report_text ------------------------------------------------------------

#' @rdname report.aov
Expand Down
2 changes: 0 additions & 2 deletions R/report.bayesfactor_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ report_text.bayesfactor_models <- function(x,
}



#' @keywords internal
.report.bayesfactor_models <- function(model,
interpretation = "jeffreys1961",
Expand Down Expand Up @@ -211,7 +210,6 @@ report_text.bayesfactor_models <- function(x,
}



# bayesfactor_inclusion ---------------------------------------------------

#' @rdname report.bayesfactor_models
Expand Down
1 change: 0 additions & 1 deletion R/report.brmsfit.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ report_text.brmsfit <- report_text.lm
# ==================== Specific to Bayes ===================================



# report_priors -----------------------------------------------------------

#' @export
Expand Down
7 changes: 0 additions & 7 deletions R/report.character.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ report.character <- function(x,
}





# report_table ------------------------------------------------------------



#' @export
report_table.character <- function(x,
n_entries = 3,
Expand Down Expand Up @@ -68,7 +64,6 @@ report_table.character <- function(x,
}



# report_parameters -------------------------------------------------------

#' @export
Expand Down Expand Up @@ -102,7 +97,6 @@ report_parameters.character <- function(x,
}



# report_text -------------------------------------------------------------

#' @export
Expand Down Expand Up @@ -175,7 +169,6 @@ report_text.character <- function(x,
}



# report_statistics -------------------------------------------------------


Expand Down
15 changes: 0 additions & 15 deletions R/report.data.frame.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ report.data.frame <- function(x,
# report_table ------------------------------------------------------------



#' @export
report_table.data.frame <- function(x,
n = FALSE,
Expand Down Expand Up @@ -178,12 +177,9 @@ report_table.data.frame <- function(x,
}




# report_parameters -------------------------------------------------------



#' @export
report_parameters.data.frame <- function(x,
table = NULL,
Expand Down Expand Up @@ -224,7 +220,6 @@ report_parameters.data.frame <- function(x,
}



# report_text -------------------------------------------------------------

#' @export
Expand Down Expand Up @@ -272,7 +267,6 @@ report_text.data.frame <- function(x,
}



# report_statistics -------------------------------------------------------


Expand Down Expand Up @@ -401,8 +395,6 @@ report_table.grouped_df <- function(x,
}




#' @export
report_parameters.grouped_df <- function(x,
table = NULL,
Expand Down Expand Up @@ -494,7 +486,6 @@ report_text.grouped_df <- function(x,
report.grouped_df <- report.data.frame



#' @export
report_statistics.grouped_df <- function(x,
table = NULL,
Expand Down Expand Up @@ -538,12 +529,6 @@ report_statistics.grouped_df <- function(x,
}








# Utils -------------------------------------------------------------------

#' @keywords internal
Expand Down
3 changes: 0 additions & 3 deletions R/report.factor.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ report.Date <- report.factor
# report_table ------------------------------------------------------------



#' @export
report_table.factor <- function(x, levels_percentage = "auto", ...) {
if (!is.factor(x)) {
Expand Down Expand Up @@ -56,7 +55,6 @@ report_table.Date <- report_table.factor
# report_parameters -------------------------------------------------------



#' @export
report_parameters.factor <- function(x, table = NULL, levels_percentage = "auto", ...) {
if (!is.factor(x)) {
Expand Down Expand Up @@ -140,7 +138,6 @@ report_text.logical <- report_text.factor
report_text.Date <- report_text.factor



# report_statistics -------------------------------------------------------


Expand Down
2 changes: 0 additions & 2 deletions R/report.lavaan.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ report.lavaan <- function(x, ...) {
}



#' @export
report_table.lavaan <- function(x, ...) {
parameters <- parameters::model_parameters(x, ci_random = FALSE, ...)
Expand Down Expand Up @@ -80,7 +79,6 @@ report_table.lavaan <- function(x, ...) {
}



#' @rdname report.lavaan
#' @export
report_performance.lavaan <- function(x, table = NULL, ...) {
Expand Down
5 changes: 0 additions & 5 deletions R/report.lm.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ report.lm <- function(x, include_effectsize = TRUE, effectsize_method = "refit",
}



# report_effectsize -------------------------------------------------------

#' @rdname report.lm
Expand Down Expand Up @@ -124,7 +123,6 @@ report_effectsize.lm <- function(x, effectsize_method = "refit", ...) {
}



# report_table ------------------------------------------------------------


Expand Down Expand Up @@ -278,7 +276,6 @@ report_statistics.lm <- function(x,
}



# report_statistics ------------------------------------------------------------

#' @rdname report.lm
Expand Down Expand Up @@ -475,7 +472,6 @@ report_performance.lm <- function(x, table = NULL, ...) {
}



# report_info ------------------------------------------------------------

#' @rdname report.lm
Expand Down Expand Up @@ -518,7 +514,6 @@ report_info.lm <- function(x,
}



# report_text ------------------------------------------------------------

#' @rdname report.lm
Expand Down
4 changes: 0 additions & 4 deletions R/report.numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ report.numeric <- function(x,
}



# report_table ------------------------------------------------------------

#' @export
Expand Down Expand Up @@ -132,8 +131,6 @@ report_table.numeric <- function(x,
}




# report_parameters -------------------------------------------------------

#' @export
Expand Down Expand Up @@ -258,7 +255,6 @@ report_parameters.numeric <- function(x,
}



# report_text -------------------------------------------------------------

#' @export
Expand Down
5 changes: 0 additions & 5 deletions R/report.sessionInfo.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ report.sessionInfo <- function(x, ...) {
}



# Aliases -----------------------------------------------------------------


Expand Down Expand Up @@ -67,7 +66,6 @@ cite_packages <- function(session = NULL, include_R = TRUE, ...) {
}



# report_system --------------------------------------------------------------


Expand Down Expand Up @@ -104,7 +102,6 @@ report_system <- function(session = NULL) {
}



# report_table ------------------------------------------------------------

#' @export
Expand Down Expand Up @@ -141,7 +138,6 @@ report_table.sessionInfo <- function(x, include_R = TRUE, ...) {
}



# report_parameters -------------------------------------------------------

#' @export
Expand Down Expand Up @@ -179,7 +175,6 @@ report_parameters.sessionInfo <- function(x, table = NULL, include_R = TRUE, ...
}



# report_text -------------------------------------------------------------

#' @export
Expand Down
2 changes: 0 additions & 2 deletions R/report_effectsize.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ print.report_effectsize <- function(x, ...) {
}



# Utilities ---------------------------------------------------------------



#' @keywords internal
.text_effectsize <- function(interpretation) {
# Effect size
Expand Down
1 change: 0 additions & 1 deletion R/report_htest_cor.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
}



# report_effectsize ---------------------

.report_effectsize_correlation <- function(x, table, dot_args) {
Expand Down
2 changes: 0 additions & 2 deletions R/report_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ report_info <- function(x, ...) {
}



# METHODS -----------------------------------------------------------------


Expand Down Expand Up @@ -78,7 +77,6 @@ print.report_info <- function(x, ...) {
}



# Utils -------------------------------------------------------------------

#' @keywords internal
Expand Down
1 change: 0 additions & 1 deletion R/report_intercept.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ print.report_intercept <- function(x, ...) {
}



.find_reference_level <- function(f) {
tryCatch(
{
Expand Down
1 change: 0 additions & 1 deletion R/report_misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ report_date <- function(...) {
}



#' @rdname report_date
#' @export
report_story <- function(...) {
Expand Down
1 change: 0 additions & 1 deletion R/report_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ report_model <- function(x, table = NULL, ...) {
}



# METHODS -----------------------------------------------------------------


Expand Down
2 changes: 0 additions & 2 deletions R/report_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ print.report_parameters <- function(x, ...) {
}



# Utils -------------------------------------------------------------------

#' @keywords internal
Expand Down Expand Up @@ -158,7 +157,6 @@ print.report_parameters <- function(x, ...) {
}



#' @keywords internal
.parameters_diagnostic_bayesian <- function(diagnostic, only_when_insufficient = FALSE, ...) {
# Convergence
Expand Down
Loading

0 comments on commit 084ed2e

Please sign in to comment.