From 460669f90bee63aae100ee0744b7e700a2827efb Mon Sep 17 00:00:00 2001 From: Ashby Thorpe Date: Wed, 25 Oct 2023 14:22:51 +0100 Subject: [PATCH] Pattern match Windows correctly --- R/chrome.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/chrome.R b/R/chrome.R index c7a89b8..ed8ae53 100644 --- a/R/chrome.R +++ b/R/chrome.R @@ -104,7 +104,7 @@ chrome_check <- function(verbose, check = TRUE) { cyml[[platvec]] <- switch(Sys.info()["sysname"], Linux = grep(os_arch("linux"), cyml[[platvec]], value = TRUE), - Windows = grep("win", cyml[[platvec]], value = TRUE), + Windows = grep(os_arch("win"), cyml[[platvec]], value = TRUE), Darwin = grep(mac_machine(), cyml[[platvec]], value = TRUE), stop("Unknown OS") )