Closed xiaodaigh closed 5 years ago
Thank you very much! I always want to add a way to locate Julia on windows! The code works perfectly on my computer and looks good to me overall.
But the new code returns an empty string if there is no folder satisfying all criterion, eg., in R documentation, Sys.info()[["login"]]
could return "unknown," or maybe there is no subfolder starting with "Julia." Would you mind adding a special case for this?
See update
Thanks a lot! I just found Sys.getenv("LOCALAPPDATA")
returns the local app data folder directly on my computer. Maybe we can use this if the login is "unknown" instead of stop directly?
added a way to find Julia.exe on Windows when JULIA_HOME is not set and
Sys.which("julia")
fails to find JuliaDescription
I couldn't find my julia.exe using
setup_julia()
so I've provided a way to find thejulia.exe
in the most common install path which isc:/Users/Login/AppData/Local
. Sure enough I found the one I am lookingRelated Issue
None
Example
This is not really testable.