We recommend you to use LocalShiny::deployApp() to update apps if you have made changes to codes. In the function, set the app name as same as that of the application deployed before, you will update it.
#"path_shiny" is set as your app directory.
# update your app, you need to set the name as same as before
LocalShiny::deployApp(username="example", project="path_shiny", name="source")
# change the app name , you need to deploy the app with a new name
LocalShiny::deployApp(username="example", project="path_shiny", name="source1")