Skip to content

Commit

Permalink
Additional tttl option to switch away from new default 'installed'
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Jun 10, 2024
1 parent e46c445 commit bf0c3d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-06-10 Dirk Eddelbuettel <edd@debian.org>

* inst/examples/tttl.r: Support load_package argument switch

2024-06-03 Dirk Eddelbuettel <edd@debian.org>

* inst/examples/installRub.r: Add --minimal flag to not add CRAN
Expand Down
6 changes: 4 additions & 2 deletions inst/examples/tttl.r
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ suppressMessages({
})

## configuration for docopt
doc <- "Usage: tttl.r [-h] [-x] [-c] [ARG]
doc <- "Usage: tttl.r [-h] [-x] [-c] [-s] [ARG]
-c --ci set environment variable CI to TRUE [default: FALSE]
-s --source set load package to 'source' not 'installed' [default: FALSE]
-h --help show this help text
-x --usage show help and short example usage"

Expand Down Expand Up @@ -53,5 +54,6 @@ if (file.exists(file.path(getwd(), "..", "DESCRIPTION"))) {
}

if (file.exists("DESCRIPTION") && dir.exists("tests/testthat")) {
testthat::test_local("tests/testthat")
testthat::test_local("tests/testthat",
load_package = if (opt$source) "source" else "installed")
}

0 comments on commit bf0c3d4

Please sign in to comment.