Skip to content

Commit 3f31746

Browse files
committed
fix: allow to test on windows
tags: fix Why? - hostname is check on the machine, but does not exist on windows machine What? - If hostname is empty after system command, then changed to windows
1 parent 0a0dc4a commit 3f31746

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: R/cran_check_unique.R

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ check_unique <- function(check_dir, lib_dir, scratch, Ncpus) {
4747
# Ncpus <- 6
4848

4949
hostname <- system2("hostname", "-f", stdout = TRUE)
50+
if (length(hostname) == 0) {hostname <- "windows"}
5051
if(hostname == "xmanduin.wu.ac.at") {
5152
Sys.setenv("_R_CHECK_EXAMPLE_TIMING_THRESHOLD_" = "10")
5253
Ncpus <- 10

0 commit comments

Comments
 (0)