Skip to content

Commit

Permalink
URL for running static server needs to escape characters on Windows
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
gadenbuie committed Jul 1, 2024
1 parent 49eebff commit 7d51c1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/export.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,12 @@ export <- function(
template_params = template_params
)

# Escape backslashes in destdir because Windows
destdir_esc <- gsub("\\\\", "\\\\\\\\", destdir)

verbose_print(
"\nRun the following in an R session to serve the app:\n",
" httpuv::runStaticServer(\"", destdir, "\")\n"
" httpuv::runStaticServer(\"", destdir_esc, "\")\n"
)

invisible()
Expand Down

0 comments on commit 7d51c1a

Please sign in to comment.