Skip to content

Commit 033a19f

Browse files
committed
why is pnas_article failing on Travis?
1 parent 65b3518 commit 033a19f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

inst/rmarkdown/templates/pnas_article/skeleton/skeleton.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ csl: pnas.csl
5959
## change to true to add optional line numbering
6060
lineno: false
6161

62-
output: rticles::pnas_article
62+
output:
63+
rticles::pnas_article:
64+
keep_tex: true
6365
---
6466

6567

tests/testit/test-formats.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ test_format <- function(name, os_skip = NULL) {
1818
create_dir = FALSE, edit = FALSE
1919
)
2020

21+
if (name == 'pnas_article') on.exit({
22+
print(xfun::file_string(xfun::with_ext(testdoc, '.tex')))
23+
print(xfun::file_string(xfun::with_ext(testdoc, '.log')))
24+
}, TRUE, FALSE)
2125
message('Rendering the ', name, ' format...')
2226
output_file <- rmarkdown::render(testdoc, quiet = TRUE)
2327
assert(paste(name, "format works"), {

0 commit comments

Comments
 (0)