Materializes app.R (and www/ if present) so a Shiny Server / Posit
Connect host can point at a folder. The folder relies on the installed
DesignLibrary package for designs and helpers.
copy_library_shiny(dest = getwd(), overwrite = TRUE, package = "DesignLibrary")Invisibly, the normalized destination path.
Directory to write (created if needed). Default: working directory.
If TRUE, replace app.R / www files (not local.R).
Package that ships the app; default "DesignLibrary".
Typical server workflow:
install.packages("DesignLibrary")
DesignLibrary::install_library_dependencies()
DesignLibrary::copy_library_shiny("/srv/shiny-server/designlibrary")
Existing local.R in dest is never overwritten.