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
WISH: as_pkgdown() / pkgdown:::package_vignettes() support any vignette format - not just rmarkdown #781
Comments
I'd be happy to review a PR that implemented this, but realistically, I'm unlikely to find the time to do it myself. |
I'm closing this issue to recognise that I'm not going to tackle this. |
Couldn't it be useful to keep it open for others to find? I doubt I'm the only one who's interested in real vignette support. (Personally I even argue it's important as pkgdown gaining more popularity) My guess is that it's not that hard to implement support for this. Like you, I don't have spare cycles to attack this one too. But maybe someone else out there has and will resolve this one. |
I would, but getting new types of vignette to work is quite challenging, I think it's better to quash your hopes today, rather than leading you on that it might happen in the future. |
|
Building the vignette itself is easy enough; it's styling it so that it fits with the rest of the site that's hard (and plumbing together all the nav stuff) |
The formats of vignette products (the "vignette output") are either in HTML or PDF formats. Two follow-up questions:
PS. Note that I never used pkgdown, hence my possibly rookie questions. |
As a perhaps not ideal (but perhaps good enough) workaround for this
This assumes, of course, that there is a file The The commented-out Iframe is there simply to trick Note that I tried using |
@gsrohde, thanks for this. I think this is a great proof of concept of showing that there's a way forward here. |
Posting partly as a feature request, and partly in case others are trying to figure out why their vignettes are not showing up as "articles" when running
pkgdown::build_site()
.Issue
pkgdown::build_site()
callspkgdown::build_articles()
internally for build "articles" from the package vignettes. However, this will only happen for vignettes undervignettes/
with filename extensions"\\.[rR]md$"
and (it looks like) the vignettes should be in Rmarkdown format with a yaml header. For instance, a traditional Sweavevignettes/*.Rnw
vignette will be (silently) ignored.Wish
It would be neat if any R vignette format that R itself supports would be recognized. Not sure if it's useful, but
tools::pkgVignettes(dir = pkg)
is what R itself uses to parse the package source for vignettes, e.g.UPDATE 2018-08-07:
tools::pkgVignettes(dir = ".")
example is now using the R.rsp package (was future package)The text was updated successfully, but these errors were encountered: