-
Notifications
You must be signed in to change notification settings - Fork 389
Description
Bug description
I've been playing with the use of quarto and the quarto extension to preview .[R]?md files in an R package. The most typical targets are:
NEWS.mdREADME.RmdorREADME.mdvignettes/whatever.Rmd
quarto preview adds /.quarto/ to the local .gitignore, i.e. to the top-level .gitignore in the first 2 cases above and to vignettes/.gitignore in the last case. Related issue: #9744.
I think quarto also needs to add an entry to .Rbuildignore in this scenario, if a relevant entry isn't already there. If you don't, R CMD check shows:
N checking for hidden files and directories ...
Found the following hidden files and directories:
.quarto
vignettes/.quarto
These were most likely included in error. See section ‘Package
structure’ in the ‘Writing R Extensions’ manual.
Here's the entry you'd want to add to .Rbuildignore if it's not already present:
^\.quarto$
(I can also add something to usethis, so that this is pre-populated if usethis does the project setup, going forward, but that's more of a gesture of moral support than an actual fix.)
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Your environment
No response
Quarto check output
No response