Skip to content

Commit

Permalink
fix windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Oct 8, 2024
1 parent 96615fa commit 8c8316f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/crew_options_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ crew_options_metrics_validate <- function(options) {
on_windows <- identical(unname(tolower(Sys.info()[["sysname"]])), "windows")
streams <- file.path("/dev", c("stdout", "stderr"))
crew_assert(
!(on_windows && options$path %in% streams),
!(on_windows && any(options$path %in% streams)),
message = paste(
"path cannot be \"/dev/stdout\" or \"/dev/stderr\" on Windows."
)
Expand Down

0 comments on commit 8c8316f

Please sign in to comment.