Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run shiny app after deleting the R session's tempdir #2421

Closed
daattali opened this issue May 5, 2019 · 2 comments
Closed

Can't run shiny app after deleting the R session's tempdir #2421

daattali opened this issue May 5, 2019 · 2 comments

Comments

@daattali
Copy link
Contributor

@daattali daattali commented May 5, 2019

I noticed that if I delete the folder given by tempdir(), I can't run any more shiny apps until I restart my R session.

> runApp()
Warning in file(con, "w") :
  cannot open file 'C:\Users\Dean\AppData\Local\Temp\Rtmp4CsZx5\file12f00718d3933': No such file or directory
Error in file(con, "w") : cannot open the connection

I doubt this will ever actually be an issue for anyone, it's just something I noticed while experimenting. Perhaps using tempdir(check = TRUE) in shiny's source code may be slightly safer than tempdir(), but again, this is very unlikely to affect anyone :)

@daattali daattali changed the title Can' Can't run shiny app after deleting the R session's tempdir May 5, 2019
@daattali
Copy link
Contributor Author

@daattali daattali commented May 5, 2019

Another issue that I decide to close immediately after opening - there is absolutely no practical reason for this to happen, it seems silly. No need to worry about this.

@daattali daattali closed this as completed May 5, 2019
@ismirsehregal
Copy link
Contributor

@ismirsehregal ismirsehregal commented Jul 31, 2019

Actually this happens to me on Windows occasionally. The tempdir() folder is deleted after the app is idling for a few days.

I think using tempdir(check = TRUE) would be a very useful thing to do. Do you know about any workaround?

I'd be glad if you re-open this issue. It seems also others are affected: please see this and this.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants