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

Multiple bookdown document types causes renv to remove bookdown #674

Closed
grasshoppermouse opened this issue Mar 10, 2021 · 1 comment
Closed

Comments

@grasshoppermouse
Copy link

Fresh renv project with a new Rmd file. bookdown is installed and correctly entered in the renv.lock file.

This YAML does not result in any unexpected behavior from renv::status():

---
title: "Test"
author: "Test"
date: "3/9/2021"
output: 
  bookdown::pdf_document2:
   number_sections: false
---
> renv::status()
* The project is already synchronized with the lockfile.

This YAML, on the other hand:

---
title: "Test"
author: "Test"
date: "3/9/2021"
output: 
  bookdown::pdf_document2:
   number_sections: false
  bookdown::html_document2:
   number_sections: false
---

results in this output from renv::status()

> renv::status()
The following package(s) are no longer used in this project:
           _
  bookdown   [0.21]

Use `renv::snapshot()` to remove them from the lockfile.
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

loaded via a namespace (and not attached):
 [1] compiler_3.6.3    bookdown_0.21     htmltools_0.5.1.1 tools_3.6.3      
 [5] yaml_2.2.1        rmarkdown_2.7     knitr_1.31        xfun_0.21        
 [9] digest_0.6.27     rlang_0.4.10      renv_0.12.5       evaluate_0.14  
@kevinushey
Copy link
Collaborator

Thanks! Fixed in the development version of renv.

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