posit-dev / r-shinylive

https://posit-dev.github.io/r-shinylive/
Other
147 stars 15 forks source link

URL for running static server needs to escape characters on Windows #82

Closed daattali closed 3 weeks ago

daattali commented 1 month ago

On a Windows machine, after running shinylive::export() the last bit of the message is:

Run the following in an R session to serve the app:
  httpuv::runStaticServer("C:\Users\Dean\AppData\Local\Temp\RtmpaW6ZAM\shinylive-export14a1058a2616d")

If I copy-paste that to my R console, it fails. The slashes need to be escaped.

jonthegeek commented 1 month ago

Or just use /. Many hands are wrung about evil Windows slashes but Windows hasn't cared about backslashes in a decade or two.