su: ignore --preserve-environment, it's mutually exclusive to --login. Error in loadNamespace(name) : there is no package called ‘shiny’ Calls: local ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted