Skip to content

[FR] Fail early if .bib file is not found #2591

Description

@nanxstats

Minimal reproducible example:

---
title: "Untitled"
output: html_document
bibliography: references.bib
---

```{r}
# Long compute
Sys.sleep(3600)
```

Save as zzz.Rmd. Running rmarkdown::render("zzz.Rmd") will fail after an hour with all compute finished but no output file generated, with the following error, simply because the .bib file is not there:

File references.bib not found in resource path
Error: pandoc document conversion failed with error 99

I wonder if it makes sense to fail early here. It will protect the users from waiting for a long time to get no results due to a trivial condition that can be easily verified by rmarkdown.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions