Accessing Windows UserName in RConnect

My organization requires shiny apps to be published using RConnect and I want to be able to record my Windows Username from my app.

Within a general R session, I can run the code below and get my Windows username:

user <- function() {
        return(Sys.getenv()["USER"][[1]])

But when published to RConnect, the value returned is: rstudio-connect

I can hypothesize why this approach doesn't work with RConnect, but is there another way I can access my Windows information from it?

Thanks!

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.