Skip to content

Commit

Permalink
πŸ› Adjust settings directory path for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lazappi committed Dec 18, 2024
1 parent 02f3d03 commit d9646df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/settings_store.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
if (settings_dir != "") {
file.path(settings_dir, ".lamin")
} else {
file.path(Sys.getenv("HOME"), ".lamin")
if (.Platform$OS.type == "windows") {
home_dir <- paste0(Sys.getenv("HOMEDRIVE"), Sys.getenv("HOMEPATH"))
} else {
home_dir <- Sys.getenv("HOME")
}
file.path(home_dir, ".lamin")
}
}

Expand Down

0 comments on commit d9646df

Please sign in to comment.