Skip to content

Commit

Permalink
change to UserProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejohnson51 committed Jul 7, 2023
1 parent 3076294 commit 0519db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/netrc_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ whatOS = function(){

build_file = function(file){
if (whatOS() == "windows") {
paste0(Sys.getenv("HOMEDRIVE"), "\\", paste0("_", file))
paste0(Sys.getenv("UserProfile"), "\\", paste0(".", file))
} else {
file.path(Sys.getenv("HOME"), paste0(".", file))
paste0(Sys.getenv("HOME"), "/" , paste0(".", file))
}
}

Expand Down

0 comments on commit 0519db7

Please sign in to comment.