Error in value[[3L]](cond) : cannot change working directory Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted

Hi, I am having trouble deploying my shiny app to shinyapps io. It works locally
I suspect it has something to do with the path/ working directory.
the folder where my app.R file is located contains a csv and an rsconnect folder.
getwd() returns confirms this same path. I even tried setwd().

setwd(C:/Users/18184/Documents/Interface3/')
Master <- read.csv('demo.csv')

rsconnect::showLogs()
2020-01-03T03:28:56.875661+00:00 shinyapps[1625948]: filter, lag
2020-01-03T03:28:56.875661+00:00 shinyapps[1625948]:
2020-01-03T03:28:56.876118+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.014301+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.014304+00:00 shinyapps[1625948]: Attaching package: ‘rsconnect’
2020-01-03T03:28:56.876116+00:00 shinyapps[1625948]: The following objects are masked from ‘package:base’:
2020-01-03T03:28:56.876117+00:00 shinyapps[1625948]:
2020-01-03T03:28:56.876118+00:00 shinyapps[1625948]: intersect, setdiff, setequal, union
2020-01-03T03:28:57.014306+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.014610+00:00 shinyapps[1625948]: The following object is masked from ‘package:shiny’:
2020-01-03T03:28:57.014611+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.014612+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.014612+00:00 shinyapps[1625948]: serverInfo
2020-01-03T03:28:57.064559+00:00 shinyapps[1625948]: Error in value (cond) : cannot change working directory
2020-01-03T03:28:57.064562+00:00 shinyapps[1625948]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
2020-01-03T03:28:57.064564+00:00 shinyapps[1625948]: Execution halted
2020-01-03T03:28:57.638715+00:00 shinyapps[1625948]: Server version: 1.7.8-7
2020-01-03T03:28:57.638716+00:00 shinyapps[1625948]: LANG: en_US.UTF-8
2020-01-03T03:28:57.785150+00:00 shinyapps[1625948]: Using jsonlite for JSON processing
2020-01-03T03:28:57.638750+00:00 shinyapps[1625948]: R version: 3.6.1
2020-01-03T03:28:57.638751+00:00 shinyapps[1625948]: shiny version: 1.4.0
2020-01-03T03:28:57.638753+00:00 shinyapps[1625948]: rmarkdown version: (none)
2020-01-03T03:28:57.638751+00:00 shinyapps[1625948]: httpuv version: 1.5.2
2020-01-03T03:28:57.638754+00:00 shinyapps[1625948]: knitr version: (none)
2020-01-03T03:28:57.638767+00:00 shinyapps[1625948]: jsonlite version: 1.6
2020-01-03T03:28:57.638768+00:00 shinyapps[1625948]: RJSONIO version: (none)
2020-01-03T03:28:57.638913+00:00 shinyapps[1625948]: Using pandoc at /opt/connect/ext/pandoc2
2020-01-03T03:28:57.794367+00:00 shinyapps[1625948]: Starting R with process ID: '45'
2020-01-03T03:28:57.638776+00:00 shinyapps[1625948]: htmltools version: 0.4.0
2020-01-03T03:28:57.794365+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.987671+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.987673+00:00 shinyapps[1625948]: Attaching package: ‘dplyr’
2020-01-03T03:28:57.987674+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.988506+00:00 shinyapps[1625948]: The following objects are masked from ‘package:stats’:
2020-01-03T03:28:57.988507+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.988507+00:00 shinyapps[1625948]: filter, lag
2020-01-03T03:28:57.988508+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.988781+00:00 shinyapps[1625948]: The following objects are masked from ‘package:base’:
2020-01-03T03:28:57.988781+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.988786+00:00 shinyapps[1625948]: intersect, setdiff, setequal, union
2020-01-03T03:28:58.115144+00:00 shinyapps[1625948]: Attaching package: ‘rsconnect’
2020-01-03T03:28:58.115145+00:00 shinyapps[1625948]:
2020-01-03T03:28:57.988786+00:00 shinyapps[1625948]:
2020-01-03T03:28:58.115142+00:00 shinyapps[1625948]:
2020-01-03T03:28:58.115423+00:00 shinyapps[1625948]: serverInfo
2020-01-03T03:28:58.115421+00:00 shinyapps[1625948]: The following object is masked from ‘package:shiny’:
2020-01-03T03:28:58.115422+00:00 shinyapps[1625948]:
2020-01-03T03:28:58.115423+00:00 shinyapps[1625948]:
2020-01-03T03:28:58.158190+00:00 shinyapps[1625948]: Error in value (cond) : cannot change working directory
2020-01-03T03:28:58.158193+00:00 shinyapps[1625948]: Execution halted
2020-01-03T03:28:58.158193+00:00 shinyapps[1625948]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->

You cannot use setwd on shinyapps.io.

See the Troubleshooting section of the documentation.

3 Likes

Thanks so much for the help!