diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3028edc..945910e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # R specific hooks: https://github.com/lorenzwalthert/precommit repos: - repo: https://github.com/lorenzwalthert/precommit - rev: v0.4.3 + rev: v0.4.3.9021 hooks: - id: style-files args: [--style_pkg=styler, --style_fun=tidyverse_style] @@ -31,7 +31,7 @@ repos: - id: no-debug-statement - id: no-print-statement - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: ['--maxkb=25000'] diff --git a/R/document_data.R b/R/document_data.R index e1fd8ba..707f3bd 100644 --- a/R/document_data.R +++ b/R/document_data.R @@ -69,7 +69,6 @@ summarize_data <- function(data, } - #' @title Preps OpenAI model prompt for data documentation #' @description #' Prepares data prompt by summarizing data and printing it diff --git a/R/utils.R b/R/utils.R index 495915b..d52580e 100644 --- a/R/utils.R +++ b/R/utils.R @@ -104,11 +104,12 @@ repair_index_names <- function(local = TRUE) { # the MIT License included with this package, as per the original usethis # package. ui_yeah <- function( - x, - yes = c("Yes", "Definitely", "Yup", "Yeah", "I agree", "Absolutely"), - no = c("No way", "Not now", "Negative", "No", "Nope", "Absolutely not"), - n_yes = 1, n_no = 2, shuffle = TRUE, - .envir = parent.frame()) { + x, + yes = c("Yes", "Definitely", "Yup", "Yeah", "I agree", "Absolutely"), + no = c("No way", "Not now", "Negative", "No", "Nope", "Absolutely not"), + n_yes = 1, n_no = 2, shuffle = TRUE, + .envir = parent.frame() +) { x <- glue::glue_collapse(x, "\n") x <- glue::glue(x, .envir = .envir)