Skip to content

Commit

Permalink
dsfs
Browse files Browse the repository at this point in the history
  • Loading branch information
svmiller committed Jan 26, 2024
1 parent ce88d5a commit 7cc73c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ R CMD check done via `devtools::check()`, resulting in 0 errors, 0 warnings, 0 n
## Downstream dependencies

This is a simple template package with no downstream dependencies to note.

## Feedback to CRAN upon initial rejection

That was me clumsily adding new templates while my tests were hard-connected to elements in a vector, by number. That's my bad.
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pandoc: 3.1.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
last_built: 2024-01-26T15:22Z
last_built: 2024-01-26T15:48Z
urls:
reference: http://svmiller.com/reference
article: http://svmiller.com/articles
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-exists.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ context("Does template exist")
#templates_all <- list.files("inst/rmarkdown/templates")
templates_all <- list.files(system.file("rmarkdown", "templates", package="stevetemplates"))

for (i in templates_all[c(1:6,8:11)]) {
for (i in templates_all[which(templates_all != "html_article" & templates_all != "word")]) {

expect_true(file.exists(system.file("rmarkdown", "templates", i, "resources", "template.tex", package = "stevetemplates")))
}


for (i in templates_all[c(7)]) {
for (i in templates_all[which(templates_all == "html_article")]) {

expect_true(file.exists(system.file("rmarkdown", "templates", i, "resources", "template.html", package = "stevetemplates")))
}

for (i in templates_all[c(12)]) {
for (i in templates_all[which(templates_all == "word")]) {

expect_true(file.exists(system.file("rmarkdown", "templates", i, "resources", "template.docx", package = "stevetemplates")))
}

0 comments on commit 7cc73c4

Please sign in to comment.