su: ignore --preserve-environment, it's mutually exclusive to --login. Error in parse(file, keep.source = FALSE, srcfile = src, encoding = enc) : /home/czv146/ShinyApps/apptest/app.R:2:1: unexpected ')' 1: options(bitmapType='cairo') 2: ) ^ Possible unmatched ')' at: 2:) ^ Error in sourceUTF8(fullpath, envir = new.env(parent = sharedEnv)) : Error sourcing /home/czv146/ShinyApps/apptest/app.R Calls: runApp ... shinyAppDir -> shinyAppDir_appR -> appObj -> func -> sourceUTF8 Execution halted