write_dev_props | R Documentation |
Write a .js file to be read in by index.html. It defines a JS object called props that can be filled with any R object convertible into JSON.
write_dev_props(path, props)
path |
:: String, File path to the svelte-app publish directory. e.g. "svelte-app/docs" or "svelte-app/public" |
props |
:: Any, Any R object convertible into JSON to pass to the app |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.