rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
401 stars 89 forks source link

suppress warnings for unknown chunk engines #639

Closed kevinushey closed 3 years ago

kevinushey commented 3 years ago

For example, with the document:

---
title: "Untitled"
output: html_document
---

```{unknown}
1

Collecting dependencies here gives a spurious warning; e.g.

packrat:::fileDependencies("~/scratch/test.Rmd") Warning in get_engine(options$engine) : Unknown language engine 'unknown' (must be registered via knit_engines$set()). [1] "rmarkdown"

We should suppress these warnings, since the "fake" render done by Packrat is done only to collect dependencies from R code chunks; custom engines are otherwise ignored.