-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Skip 'parse_known_intermixed_args()' tests on Debian on CRAN
* Skips two `parse_known_intermixed_args()` tests on CRAN on Debian Testing to avoid raising an ERROR due to a bug in Debian Testing's version of python: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087681 closes #53
- Loading branch information
Showing
4 changed files
with
31 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Based on code from Dirk Eddelbuettel | ||
# https://fosstodon.org/@[email protected]/113499555242268476 | ||
get_linux_flavor <- function() { | ||
flavor <- NA_character_ | ||
osrel <- "/etc/os-release" | ||
if (isTRUE(file.exists(osrel))) { # on (at least) Debian, Ubuntu, Fedora | ||
x <- utils::read.table(osrel, sep = "=", row.names = 1L, | ||
col.names = c("","Val"), header = FALSE) | ||
flavor <- tolower(x["ID", "Val"]) | ||
} | ||
flavor | ||
} |
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