@@ -21,7 +21,7 @@ quarto_path <- function(normalize = TRUE) {
2121 if (! normalize ) {
2222 return (quarto_path )
2323 }
24- normalizePath (quarto_path , winslash = " / " , mustWork = FALSE )
24+ xfun :: normalize_path (quarto_path )
2525}
2626
2727get_quarto_path_env <- function () {
@@ -257,7 +257,7 @@ quarto_binary_sitrep <- function(verbose = TRUE, debug = FALSE) {
257257 return (FALSE )
258258 }
259259
260- quarto_found <- normalizePath (quarto_found , mustWork = FALSE )
260+ quarto_found <- xfun :: normalize_path (quarto_found )
261261
262262 same_config <- TRUE
263263 if (debug ) {
@@ -271,8 +271,8 @@ quarto_binary_sitrep <- function(verbose = TRUE, debug = FALSE) {
271271 ))
272272 }
273273
274- quarto_r_env <- normalizePath (get_quarto_path_env(), mustWork = FALSE )
275- quarto_system <- normalizePath (unname(Sys.which(" quarto" )), mustWork = FALSE )
274+ quarto_r_env <- xfun :: normalize_path (get_quarto_path_env())
275+ quarto_system <- xfun :: normalize_path (unname(Sys.which(" quarto" )))
276276 # quarto R package will use QUARTO_PATH env var with higher priority than latest version on path $PATH
277277 # and RStudio IDE does not use this environment variable
278278 if (! is.na(quarto_r_env ) && identical(quarto_r_env , quarto_found )) {
@@ -296,7 +296,7 @@ quarto_binary_sitrep <- function(verbose = TRUE, debug = FALSE) {
296296 # RStudio IDE > Render button will use RSTUDIO_QUARTO env var with higher priority than latest version on path $PATH
297297 rstudio_env <- Sys.getenv(" RSTUDIO_QUARTO" , unset = NA )
298298 if (! is.na(rstudio_env )) {
299- rstudio_env <- normalizePath (rstudio_env , mustWork = FALSE )
299+ rstudio_env <- xfun :: normalize_path (rstudio_env )
300300 if (! identical(rstudio_env , quarto_found )) {
301301 same_config <- FALSE
302302 if (verbose ) {
0 commit comments