Skip to content

Commit

Permalink
fix: URL for running static server needs to escape characters on Wind…
Browse files Browse the repository at this point in the history
…ows (#99)

Fixes #82
  • Loading branch information
gadenbuie authored Jul 1, 2024
1 parent 71a540e commit f6099fe
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 f6099fe

Please sign in to comment.