Skip to content

Commit

Permalink
fix checklist issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Nov 24, 2023
1 parent 7cdfac4 commit e17c41b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ License: GPL-3
URL: https://inbo.github.io/INBOmd/, https://github.com/inbo/inbomd,
https://doi.org/10.5281/zenodo.842223
BugReports: https://github.com/inbo/inbomd/issues
Depends:
R (>= 3.5.0)
Imports:
assertthat,
bookdown (>= 0.23.4),
Expand Down
4 changes: 2 additions & 2 deletions R/gitbook.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ gitbook <- function(code_folding = c("none", "show", "hide")) {
template = template, extra_dependencies = list(inbomd_dep),
code_folding = code_folding
)
old_post <- config$post_processor # in case a post processor have been defined
op <- config$post_processor # in case a post processor have been defined

Check warning on line 130 in R/gitbook.R

View check run for this annotation

Codecov / codecov/patch

R/gitbook.R#L130

Added line #L130 was not covered by tests
config$post_processor <- function(metadata, input, output, clean, verbose) {
file(output, encoding = "UTF-8") |>
readLines() -> x
Expand All @@ -136,7 +136,7 @@ gitbook <- function(code_folding = c("none", "show", "hide")) {
x <- c(head(x, i - 1), "", tail(x, -i + 1))
}
writeLines(x, output)
old_post(metadata, input, output, clean, verbose)
op(metadata, input, output, clean, verbose)

Check warning on line 139 in R/gitbook.R

View check run for this annotation

Codecov / codecov/patch

R/gitbook.R#L139

Added line #L139 was not covered by tests
}
config$clean_supporting <- TRUE
return(config)
Expand Down
2 changes: 1 addition & 1 deletion R/pdf_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pdf_report <- function(
args <- args[args != ""]
validate_doi(ifelse(has_name(fm, "doi"), fm$doi, "1.1/1"))

Check warning on line 107 in R/pdf_report.R

View check run for this annotation

Codecov / codecov/patch

R/pdf_report.R#L107

Added line #L107 was not covered by tests
if (
!has_name(fm, "doi") && has_name(fm, "public_report") && !fm$public_report
has_name(fm, "public_report") && !fm$public_report

Check warning on line 109 in R/pdf_report.R

View check run for this annotation

Codecov / codecov/patch

R/pdf_report.R#L109

Added line #L109 was not covered by tests
) {
Sys.time() |>
format("%Y-%m-%d %H:%M:%S") |>
Expand Down

0 comments on commit e17c41b

Please sign in to comment.