Description Usage Arguments Details See Also Examples
Copy an existing Shiny app to a source package (not an installed package) and create DESCRIPTION
and Readme.md
template files related to Shiny showcase mode.
1 2 |
app |
character, path to app directory. |
path |
character, path app is copied to; should be under source package |
description |
logical, add a |
readme |
logical, add a |
overwrite |
logical, overwrite files. See details. |
Since this function is for use in a package development context, it is assumed your working directory is the package root directory, hence the default path = "inst"
.
You can create description
and readme
with use_app
and then edit these files.
Alternatively, you can create them directly and with greater control using use_app_description
and use_app_readme
.
Also, if a rsconnect
directory exists in app
it is not retained in the new copy in path
.
When overwrite = TRUE
, overwrite a previously added app at path
.
Also overwrite any pre-existing DESCRIPTION
or Readme.md
files copied from the source app
if description = TRUE
or readme = TRUE
.
In the latter case, existing files inside app
are never overwritten. Rather, new template files are created in path
in place of the copied files.
use_app_description
, use_app_readme
1 2 | # Copy an external app to a 'shiny' subdirectory inside package source 'inst' directory.
## Not run: use_app(app = "../external_app", path = "inst/shiny")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.