-1

On the shinyapp.io log, I get an error saying it cannot create dir

This works fine locally:

datetime <- format(Sys.time(),"%Y%m%d%H%M%S")
dir.create(file.path("tmp", paste0("_", datetime)))

Not sure where I am going wrong. Folder structure is:

enter image description here

dwiz
  • 410
  • 3
  • 16

1 Answers1

0

After further testing; I added recursive=TRUEand it worked on shinyapp.io. My guess is that the tmp folder is empty when I deploy, and shinyapp.io cannot recognize empty folders.

dir.create(file.path("tmp", paste0("_", datetime)), recursive = TRUE)

E_net4
  • 27,810
  • 13
  • 101
  • 139
dwiz
  • 410
  • 3
  • 16