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

Other ways to exclude Rmd files while building articles #1336

Closed
rickhelmus opened this issue May 28, 2020 · 3 comments
Closed

Other ways to exclude Rmd files while building articles #1336

rickhelmus opened this issue May 28, 2020 · 3 comments

Comments

@rickhelmus
Copy link

Hello,

I am using both pkgdown and bookdown for my R package. For this I need to exclude a set of Rmd files in order to build the website that are only used by bookdown. The way to go was by prefixing these files with an underscore, however, ironically enough bookdown recently also started to ignore files prefixed with an underscore. Is there way around it? Currently I am temporarily re-naming files, but this is obviously quite messy :-(

Thanks,
Rick

@jayhesselberth
Copy link
Collaborator

jayhesselberth commented May 30, 2020

We should probably provide a way to specify excluded files in the pkgdown config file that is independent of a filename prefix.

@hadley
Copy link
Member

hadley commented Jun 11, 2020

You can also exclude vignettes from becoming articles by adding to .Rbuildignore. It's not clear to me that we need a third mechanism. I'd want to know more about how exactly you are attempting to use bookdown and pkgdown together before we consider adding any new code.

@hadley hadley closed this as completed Aug 20, 2020
@salim-b
Copy link
Contributor

salim-b commented Mar 5, 2021

@hadley I have a TODO.md in the package's root dir which I've added to .Rbuildignore. pkgdown always builds this to TODO.html. How would I tell pkgdown to ignore it instead?

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

4 participants