Error in `$<-.data.frame`(`*tmp*`, "config_url", value = "https://www.shinyapps.io/admin/#/application/") : replacement has 1 row, data has 0

You shouldn't be using setwd() and using an absolute path inside it makes it worse, have in mind that when the app is deployed to the server is going to be executed on a computer other that yours where that file path doesn't exist, so modify your code to include relative paths only and avoid using setwd()

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.