eddelbuettel / pinp

Pinp Is Not PNAS -- Two-Column PDF Template
147 stars 25 forks source link

Add unit test #40

Closed coatless closed 6 years ago

coatless commented 6 years ago

Create a unit test based off of what exists in RStudio's rticles package.

c.f.

https://github.com/rstudio/rticles/blob/865247673577cab956a2c87dd1a6b3f1f63cd3aa/tests/testthat/test_formats.R

eddelbuettel commented 6 years ago

Suggest to keep it simpler as we are not looping over formats -- so let's just set up a file in tests/ and stop() if not output is produced.

I would also suggest to not do that at Travis (and maybe not at CRAN either) as life is generally too short (at my timescale) to bother with latex installations.

eddelbuettel commented 6 years ago

Actually ... we don't even need that. Building a tar.gz builds the vignette. So there.

coatless commented 6 years ago

Heh. Gotta love R's packaging system...