knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of rscloud.dash.py is to provide some helper functions to launch Python Dash apps from RStudio Cloud.
You can install the development version of rscloud.dash.py like so:
devtools::install_github("ijlyttle/rscloud.dash.py")
If you are developing a Python Dash app using RStudio Cloud, you can launch it with:
library("rscloud.dash.py") run_dash_app("dash.py", venv = "./venv")
This will open your local browser to the Dash App, but you will have to reload the page after a few seconds, because the browser is launched before the Dash app is launched.
It has to be in this order because the launching the app consumes the R session.
I know there has to be a clever way to get around this, but ¯\_(ツ)_/¯
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.