-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into linter-ci
- Loading branch information
Showing
2 changed files
with
11 additions
and
16 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,15 +1,7 @@ | ||
require(data.table) | ||
library(data.table) | ||
if (!as.logical(Sys.getenv("TEST_DATA_TABLE_WITH_OTHER_PACKAGES", "FALSE"))) { | ||
cat("Skipping tests in 'other' and quitting, set TEST_DATA_TABLE_WITH_OTHER_PACKAGES to proceed.\n") | ||
q('no') | ||
} | ||
|
||
options(warn=1) | ||
# test.data.table() turns on R's warnPartial* options and currently there | ||
# are partial argument names used in base and other packages. Without the | ||
# options(warn=1), other.Rout just contains "There were 16 warnings (use | ||
# warnings() to see them)". However, a print(warnings()) after test.data.table() | ||
# just results in NULL in other.Rout. Hence options(warn=1) because that | ||
# worked to display the warnings, not because we want them displayed at the | ||
# time per se. | ||
|
||
test.data.table(script="other.Rraw") |