su: ignore --preserve-environment, it's mutually exclusive to --login. Error in parse(file, keep.source = FALSE, srcfile = src, encoding = enc) : /home/cld189/ShinyApps/app.R:392:2: unexpected ')' 391: 392: }) ^ Possible missing comma at: 314: for (i in 1:ncol(data)) { ^ Possible missing comma at: 314: for (i in 1:ncol(data)) { ^ Possible missing comma at: 320: for (i in 1:ncol(data)) { ^ Possible missing comma at: 320: for (i in 1:ncol(data)) { ^ Possible missing comma at: 357: content = function(file) file.copy(fileName, file) ^ Possible unmatched ')' at: 392:}) ^ Possible unmatched '}' at: 404:} ^ Error in sourceUTF8(fullpath, envir = new.env(parent = globalenv())) : Error sourcing /home/cld189/ShinyApps/app.R Calls: runApp -> -> appObj -> func -> sourceUTF8 Execution halted