Fix a few bugs in deployToShinyApps