Skip to content

Commit

Permalink
Remove suggested dependencies no longer used directly by devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Apr 9, 2020
1 parent dce25c9 commit b166195
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 31 deletions.
6 changes: 1 addition & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ Imports:
withr (>= 2.1.2)
Suggests:
BiocManager (>= 1.30.10),
bitops (>= 1.0-6),
curl (>= 4.3),
evaluate (>= 0.14),
foghorn (>= 1.1.5),
gmailr (>= 1.0.0),
knitr (>= 1.28),
Expand All @@ -57,11 +55,9 @@ Suggests:
pingr (>= 2.0.0),
MASS,
pkgdown (>= 1.5.1),
Rcpp (>= 1.0.4.6),
rhub (>= 1.1.1),
rmarkdown (>= 2.1),
spelling (>= 2.1),
whisker (>= 0.4)
spelling (>= 2.1)
VignetteBuilder: knitr
Encoding: UTF-8
RoxygenNote: 7.1.0
Expand Down
8 changes: 0 additions & 8 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ ends_with_newline <- function(path) {
lastByte == 0x0a
}

render_template <- function(name, data = list()) {
check_suggested("whisker")

path <- system.file("templates", name, package = "devtools")
template <- readLines(path)
whisker::whisker.render(template, data)
}

is_installed <- function(pkg, version = 0) {
installed_version <- tryCatch(utils::packageVersion(pkg), error = function(e) NA)
!is.na(installed_version) && installed_version >= version
Expand Down
11 changes: 0 additions & 11 deletions tests/testthat/testNamespace/DESCRIPTION

This file was deleted.

5 changes: 0 additions & 5 deletions tests/testthat/testNamespace/NAMESPACE

This file was deleted.

1 change: 0 additions & 1 deletion tests/testthat/testNamespace/R/a.R

This file was deleted.

1 change: 0 additions & 1 deletion tests/testthat/testNamespace/R/b.R

This file was deleted.

0 comments on commit b166195

Please sign in to comment.