Skip to content

Commit 8461eac

Browse files
committed
normalize path when cache is memory in load_race_session()
1 parent 562cff5 commit 8461eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/load_race_session.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ load_race_session <- function(obj_name = "session", season = get_current_season(
5959

6060
# only cache to tempdir if cache option is set to memory or off (includes filesystem in vector as a fallback error catch)
6161
if (getOption("f1dataR.cache") %in% c("memory", "off", "filesystem")) {
62-
f1datar_cache <- tempdir()
62+
f1datar_cache <- normalizePath(tempdir(), winslash = "/")
6363
} else {
6464
f1datar_cache <- normalizePath(getOption("f1dataR.cache"), winslash = "/")
6565
}

0 commit comments

Comments
 (0)