diff --git a/R/active.R b/R/active.R index 4610794bf..f3b8f236b 100644 --- a/R/active.R +++ b/R/active.R @@ -2,7 +2,7 @@ find_active_file <- function(arg = "file") { if (!rstudioapi::isAvailable()) { stop("Argument `", arg, "` is missing, with no default", call. = FALSE) } - rstudioapi::getSourceEditorContext()$path + normalizePath(rstudioapi::getSourceEditorContext()$path) } find_test_file <- function(path) {