Skip to content

Commit

Permalink
R: Drop use of PORT4ME_INCLUDE_MIN; not needed, cf. Issue #60
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jan 11, 2024
1 parent ece7c60 commit 8d8ff22
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions r/R/port4me.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,10 @@ port4me <- function(tool = NULL, user = NULL, prepend = NULL, include = NULL, ex
))
}

port4me_include_min <- Sys.getenv("PORT4ME_INCLUDE_MIN", "1024")
port4me_include_min <- as.integer(port4me_include_min)
stopifnot(
!is.na(port4me_include_min),
port4me_include_min >= 1L,
port4me_include_min <= 65535L
)

## Subset of ports to draw from
if (length(include) > 0 || length(exclude) > 0) {
if (length(exclude) > 0 && length(include) == 0) {
include <- port4me_include_min:65535
include <- 1024:65535 ## default
}
subset <- unique(setdiff(include, exclude))
} else {
Expand Down

0 comments on commit 8d8ff22

Please sign in to comment.