Is there a way to get the current windows user name or the windows home within an R session?
Thanks.
 (Sorry, if I missed something, but I couldn't find anything)
You can do
Sys.getenv("USERNAME") Sys.getenv("HOME")   And if you just type
Sys.getenv()   you will see all available environment variables.
I prefer this
Sys.info()[["user"]] 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With