Re: [R-pkg-devel] bioRxiv Preprint as Vignette

2019-11-30 Thread Dirk Eddelbuettel


On 30 November 2019 at 19:55, Charith Karunarathna wrote:
| I am just wondering about how I can include a bioRxiv preprint as the 
vignette of my R package. It's a pdf file already in bioRxiv. Could you please 
let me know how I can include that file as vignette?

Sure. "Just do it" -- in the sense that you can create five-line Sweave
vignette wrappers around existing pdf files.  See

  
https://www.markvanderloo.eu/yaRb/2019/01/11/add-a-static-pdf-vignette-to-an-r-package/

I do the same now in a number of packages, for example my anytime repo

  https://github.com/eddelbuettel/anytime/tree/master/vignettes

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] bioRxiv Preprint as Vignette

2019-11-30 Thread Henrik Bengtsson
Disclaimer, I'm the author: You can include a static PDF using the
R.rsp::asis vignette engine:

  
https://cran.r-project.org/web/packages/R.rsp/vignettes/R_packages-Static_PDF_and_HTML_vignettes.pdf

Better is if you've got the LaTeX source (with figures etc.), then use
the R.rsp::tex vignette engine:

  
https://cran.r-project.org/web/packages/R.rsp/vignettes/R_packages-LaTeX_vignettes.pdf

/Henrik

PS. On a side, should LaTeX-to-PDF (as in R.rsp::tex) be part of base
R?  That seems non-controversial to me.  In contrast, including static
PDFs and HTMLs requires a debate whether this is a good thing or not,
e.g. the risk of decoupling/losing the original source artifact and
it's only the final PDF/HTML artifact that is archived on CRAN.

On Sat, Nov 30, 2019 at 11:56 AM Charith Karunarathna
 wrote:
>
> Hi,
>
>
> I am just wondering about how I can include a bioRxiv preprint as the 
> vignette of my R package. It's a pdf file already in bioRxiv. Could you 
> please let me know how I can include that file as vignette?
>
>
> Thank you in advance!
>
>
> Charith.
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[R-pkg-devel] bioRxiv Preprint as Vignette

2019-11-30 Thread Charith Karunarathna
Hi,


I am just wondering about how I can include a bioRxiv preprint as the vignette 
of my R package. It's a pdf file already in bioRxiv. Could you please let me 
know how I can include that file as vignette?


Thank you in advance!


Charith.



[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel