Skip to content

Commit

Permalink
fix lintr issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dpprdan committed Jan 25, 2025
1 parent a15d3f4 commit 5911745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vignettes/precompile.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ library(knitr)
stopifnot("no OPENCAGE_KEY envvar present" = nzchar(Sys.getenv("OPENCAGE_KEY")))

# write data frames as markdown tables via `knitr::kable()`
knit_print.data.frame = function(x, ...) {
res = paste0(c(kable(x, output = FALSE)), collapse = "\n")
knit_print.data.frame <- function(x, ...) { # nolint
res <- paste0(c(kable(x, output = FALSE)), collapse = "\n")
asis_output(res)
}
# register the method
Expand All @@ -20,7 +20,7 @@ knit("vignettes/customise_query.Rmd.src", "vignettes/customise_query.Rmd")

# reset print method for output_options vignette,
# because kable() doesn't print list columns well
knit_print.data.frame = function(x, ...) {
knit_print.data.frame <- function(x, ...) { # nolint
print(x)
}
# register the method
Expand Down

0 comments on commit 5911745

Please sign in to comment.