I am running Windows 10 64bit Pro.
I tried to run
path.expand("~")
in RStudio and it gave me
[1] "C:/Users/my_username/Documents"
However I tried to use Julia's RCall.jl
using RCall
R"path.expand('~')"
but it gave me
[1] "C:/Users/my_username/"
And they are both use the same R binaries. I wonder how is the folder "~" defined in R under Windows?