-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from bburns632/bugfix/cranTesting
V 0.3.1 to address CRAN testing issues
- Loading branch information
Showing
8 changed files
with
149 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: pkgnet | ||
Type: Package | ||
Title: Get Network Representation of an R Package | ||
Version: 0.3.0.9999 | ||
Version: 0.3.1 | ||
Authors@R: c( | ||
person("Brian", "Burns", email = "[email protected]", role = c("aut", "cre")), | ||
person("James", "Lamb", email = "[email protected]", role = c("aut")), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
context("always true for cran") | ||
# Due to complications on CRAN with handling of temporary packages during testing, TRAVIS | ||
# and local testing will remain the main test processes for pkgnet. | ||
# See https://github.com/UptakeOpenSource/pkgnet/issues/160 for details on this decision. | ||
|
||
##### TEST SET UP ##### | ||
|
||
rm(list = ls()) | ||
# Configure logger (suppress all logs in testing) | ||
loggerOptions <- futile.logger::logger.options() | ||
if (!identical(loggerOptions, list())){ | ||
origLogThreshold <- loggerOptions[[1]][['threshold']] | ||
} else { | ||
origLogThreshold <- futile.logger::INFO | ||
} | ||
futile.logger::flog.threshold(0) | ||
|
||
##### THE TEST ##### | ||
|
||
test_that("always true", { | ||
expect_true(TRUE, info = "always true") | ||
}) | ||
|
||
##### TEST TEAR DOWN ##### | ||
|
||
futile.logger::flog.threshold(origLogThreshold) | ||
rm(list = ls()) | ||
closeAllConnections() |