Skip to content

Commit

Permalink
fix: Add generic pdf alerting user to errors
Browse files Browse the repository at this point in the history
for use with no `rmarkdown`
  • Loading branch information
AlexAxthelm committed Nov 17, 2023
1 parent 2ee3ee0 commit 5c00c1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/prepare_error_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ prepare_error_report <- function(
params = list(errors = errors)
)
} else {
cat("rmarkdown not available, cannot render pdf")
file.copy (
from = file.path("inst", "rmd", "user_errors_generic.pdf"),
to = output_file
)
}
}
Binary file added inst/rmd/user_errors_generic.pdf
Binary file not shown.

0 comments on commit 5c00c1b

Please sign in to comment.