Hi,
I'd like my shiny app to kick off a certain system command every time a users accesses it, so I'm trying it out with basic commands to see if it would work. Currently, running the following from R itself completes with the expected result:
system("echo myPassword | sudo -S mkdir ~/testdir")
However, when I put that same command into server.r, nothing happens. I've tried doing the same with other commands and it seems like shiny just skips over the command entirely.
How can I get this to work?
Thanks.