Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log_errors in rmarkdown #104

Closed
jthorey opened this issue Mar 9, 2022 · 1 comment
Closed

log_errors in rmarkdown #104

jthorey opened this issue Mar 9, 2022 · 1 comment

Comments

@jthorey
Copy link

jthorey commented Mar 9, 2022

I try to put errors in the log file from rmarkdown, but the compilation of the following rmarkdown fails :


title: "test logger"
output:
html_document

library(logger)
log_errors()

with the error
Error in globalCallingHandlers(error = function(m) { : should not be called with handlers on the stack.

@daroczig
Copy link
Owner

daroczig commented Mar 9, 2022

Unfortunately, both R markdown and logger try to use the same globalCallingHandlers -- which is not supported. Honestly, I do not see a way to overcome this limitation, see #70 for more details (marking as duplicated issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants