When I call Sys.getenv("HOME") is c:/users/paull/OneDrive/Documents
However, when I go into the command prompt I get
echo $USERPROFILE
C:/users/paull
(using cygwin)
simlarly using command prompt, I have
echo %USERPROFILE%
C:/users/paull
So it seems that R's user home is not actually my users home directory.
Anyone know where this strange behavior is coming from?