Description Usage Arguments See Also
This helper function provides the paths for any resources used in learnr
tutorials. During package development, each <tutorial> is located in
inst/tutorials/<tutorial>/
and resources in inst/resources/
(relative to the root of the package). After installation, <tutorial> is in
tutorials/<tutorial>/
and resources in resources/
(relative to
the root of the installed package). shiny::addResourcePath
creates a
prefix to be used as filepath to the following resources: images
(/images
), css files /css
, and example script files
scripts
. The default parameters assume the installed package folder
structure described above.
1 2 3 4 5 | setup_resources(
css = "resources/css",
images = "resources/images",
scripts = "resources/scripts"
)
|
css |
A string giving the css location relative to installed package. |
images |
A string giving the images location relative to installed package. |
scripts |
A string giving the scripts location relative to installed package. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.