Creates Shinylive url based on app code.
Usage
create_shinylive_url(code, mode = c("app", "editor"), header = TRUE)
Examples
code <- "this is your app code as a string"
create_shinylive_url(code)
#> [1] "https://shinylive.io/r/app/#code=NobwRAdghgtgpmAXGKAHVA6ASmANGAYwHsIAXOMpMUgCwEsBnAAkaYE8iBXAJybVSbEAJnD7MoTBqW50IAczABfALpA"
create_shinylive_url(code, header = FALSE)
#> [1] "https://shinylive.io/r/app/#h=0&code=NobwRAdghgtgpmAXGKAHVA6ASmANGAYwHsIAXOMpMUgCwEsBnAAkaYE8iBXAJybVSbEAJnD7MoTBqW50IAczABfALpA"
create_shinylive_url(code, mode = "editor")
#> [1] "https://shinylive.io/r/editor/#code=NobwRAdghgtgpmAXGKAHVA6ASmANGAYwHsIAXOMpMUgCwEsBnAAkaYE8iBXAJybVSbEAJnD7MoTBqW50IAczABfALpA"