Skip to content
New issue

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

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

Already on GitHub? # to your account

Error in value[[3L]](): Failed to build manual #2586

Open
mcol opened this issue Nov 15, 2024 · 0 comments
Open

Error in value[[3L]](): Failed to build manual #2586

mcol opened this issue Nov 15, 2024 · 0 comments

Comments

@mcol
Copy link

mcol commented Nov 15, 2024

Is your feature request related to a problem? Please describe.

Building the pdf manual failed for me with this rather unhelpful message and backtrace:

devtools::build_manual(pkg = ".")
Error in `value[[3L]]()`:
! Failed to build manual
Run `rlang::last_trace()` to see where the error occurred.
Backtrace:1. └─devtools::build_manual(...)
 2.   └─base::tryCatch(...)
 3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 5.         └─value[[3L]](cond)

Only after looking at the code of build_manual() and figuring out the command that it was trying to run via callr (R CMD Rd2pdf --force --output=pkg.BuildResults/pkg_0.0.1.pdf /scratch/dev/pkg) I got an actionable error from pdfTeX:

! LaTeX Error: File `inconsolata.sty' not found.

Describe the solution you'd like

It would be nice if the console error would bubble up to devtools so one could debug the problem much more speedily.

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

No branches or pull requests

1 participant