Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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']
Expand Down
1 change: 0 additions & 1 deletion R/document_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading