Skip to content

Commit

Permalink
why is pnas_article failing on Travis?
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 20, 2019
1 parent 65b3518 commit 033a19f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inst/rmarkdown/templates/pnas_article/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ csl: pnas.csl
## change to true to add optional line numbering
lineno: false

output: rticles::pnas_article
output:
rticles::pnas_article:
keep_tex: true
---


Expand Down
4 changes: 4 additions & 0 deletions tests/testit/test-formats.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ test_format <- function(name, os_skip = NULL) {
create_dir = FALSE, edit = FALSE
)

if (name == 'pnas_article') on.exit({
print(xfun::file_string(xfun::with_ext(testdoc, '.tex')))
print(xfun::file_string(xfun::with_ext(testdoc, '.log')))
}, TRUE, FALSE)
message('Rendering the ', name, ' format...')
output_file <- rmarkdown::render(testdoc, quiet = TRUE)
assert(paste(name, "format works"), {
Expand Down

0 comments on commit 033a19f

Please sign in to comment.