I have an R
package on GitHub that I am about to submit to CRAN. Up to now, the package has had an extensive README.md document that shows:
For the purposes of GitHub users, I thought that putting these to README.md is more appealing than vignette as it shows up when a user views the package's repo.
When I am at the point of moving the package to CRAN, I would like to have pretty much the same content as currently in README.md available in a form of a vignette.
Question: is it a correct way of acting to make an almost 1-1 copy of README.md into a vignette, keep both, update GitHub repo to have this vignette as well, and then submit as such to CRAN? Or: it would pose a duplication that should not take place? (then how should I proceed?)
To see the vignette for a specific package, use the argument, browseVignettes ("packagename"). Each vignette provides three things: the original source file, a readable HTML page or PDF, and a file of R code. You can read a specific vignette with vignette (x), and see its code with edit (vignette (x)).
A vignette is a long-form guide to your package. Function documentation is great if you know the name of the function you need, but it’s useless otherwise. A vignette is like a book chapter or an academic paper: it can describe the problem that your package is designed to solve, and then show the reader how to solve it.
Function documentation is great if you know the name of the function you need, but it’s useless otherwise. A vignette is like a book chapter or an academic paper: it can describe the problem that your package is designed to solve, and then show the reader how to solve it.
To see the vignette for a specific package, use the argument, browseVignettes ("packagename"). Each vignette provides three things: the original source file, a readable HTML page or PDF, and a file of R code.
Yes, I think that is not uncommmon. You
and the same markdown text might as well serve in all three instances.
In any event there is no rule against it. Also, in case you did not know, this would have been a good question for the dedicated and focused r-package-devel
mailing list concerned with packaging.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With