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

Creating README.md which includes a vignette #18

Open
thibautjombart opened this issue Mar 26, 2015 · 0 comments
Open

Creating README.md which includes a vignette #18

thibautjombart opened this issue Mar 26, 2015 · 0 comments

Comments

@thibautjombart
Copy link
Contributor

Hey guys,
you may remember me enquiring about this. Basically, we want the README.md to contain some doc, ideally a vignette. I wasn't sure how to do it. Apparently, there is currently no native support on github for the equivalent of the C:

#include "myFile"

I came up with a workaround which is:

  1. Have a regular markdown vignette in the package structure, in vignettes/
  2. Use a README.Rmd which will recompile the vignette and include its md output into itself
  3. Generate README.md from README.Rmd using knit("README.Rmd")

Example for the apex package:
https://github.com/thibautjombart/apex

Easy to extend to any other package. It does require knitr to be the vignette engine though.

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

1 participant