Skip to content

Commit

Permalink
merge back from main and updated teal.reporter.global_knitr
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeyakirar committed Oct 3, 2023
1 parent 8fa2e3a commit a08cca5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions R/Renderer.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ Renderer <- R6::R6Class( # nolint: object_name_linter.
yaml_header <- md_header(yaml::as.yaml(list(title = "Report")))
}

if (requireNamespace("formatR", quietly = TRUE)) {
global_knitr[["tidy"]] <- TRUE
}

private$report_type <- get_yaml_field(yaml_header, "output")
format_code_block_function <- paste0(
c(
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
default_global_knitr <- list(teal.reporter.global_knitr = list(
echo = TRUE,
tidy.opts = list(width.cutoff = 60),
tidy = FALSE
tidy = requireNamespace("formatR", quietly = TRUE)
))

if (!("teal.reporter.global_knitr" %in% names(op))) {
Expand Down

0 comments on commit a08cca5

Please sign in to comment.