Customized version of shinylive for RinteRface packages. Hosted at https://shinylive.rinterface.com.
The purpose is to reuse it in multiple projects as a boilerplate. As an example, one can seamlessly create the app code via the editor, share the URL and insert an iframe in another location to embed the editor.
Few things have been changed:
-
./shinylive/webrpoints tohttps://webr-cran.rinterface.comin./shinylive/webr/webR/config.d.tsso we can use the RinteRface wasm CRAN for pulling specific packages like{bs4Dash}. Currently the issue is thatwebRis pulled from npm in the shinylive repository so we have no control over the sources. -
2 functions for sharing code are modified. We removed
${shortEngine[engine]}from./shinylive/chunk-....js(seehttps://github.com/posit-dev/shinylive/blob/main/src/Components/share.ts) since we don't need to switch between Python and R:
function editorUrlPrefix(engine) {
return `https://shinylive.rinterface.com/editor/`;
}
function appUrlPrefix(engine) {
return `https://shinylive.rinterface.com/app/`;
}-
appandeditorare necessary for the code sharing feature. Don't remove them. -
We don't have an
examplefolder showcasing multiple apps. -
The
test foldercontains a toy app which was prepared by the R{shinylive}package so we can just copy theapp.jsonto the website root.