View source: R/build-package-json.R
| generate_package_json | R Documentation |
Programmatically creates the package.json content based on the backend type and configuration. This replaces the previous Whisker template approach to avoid fragile JSON + Mustache comma handling.
generate_package_json(
app_slug,
app_version,
backend,
config,
icon = NULL,
sign = FALSE,
is_multi_app = FALSE,
app_name = NULL
)
app_slug |
Character string. The slugified app name. |
app_version |
Character string. The app version. |
backend |
Character string. The backend module name without .js (e.g., "shinylive", "native-r"). |
config |
List. The effective configuration. |
icon |
Character string or NULL. Path to the app icon, which
|
app_name |
Character string or NULL. Display name, used as the
electron-builder productName. |
Character string. The JSON content for package.json.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.