These test the full end-to-end publishing experience with renv.
Create a new project.
r
usethis::create_project("~/desktop/rsconnect-archived")
The remaining steps happen within this newly created project.
Install an old version of rowr
.
r
devtools::install_version('rowr', '1.1.3')
Run the following code to create an app.R
:
r
writeLines(c(
"library(rowr)",
"shinyApp(ui = fluidPage('shiny rowr'), server = function(input, output){})"
), "app.R")
Deploy to shinyapps.io:
r
rsconnect::deployApp(server = "shinyapps.io")
Deploy to colorado (Posit employees, only):
r
rsconnect::deployApp(server = "colorado.posit.co")
Expected behaviour:
Create a new project:
```r usethis::create_project("~/desktop/rsconnect-key-types") ````
The remaining steps happen within this newly created project.
Install CRAN, GitHub, and Bioconductor packages into your library:
r
pak::pak(c("rlang", "r-lib/waldo", "bioc::Biobase"))
Run the following code to create an app.R
:
r
writeLines(c(
"library(rlang)",
"library(waldo)",
"library(Biobase)",
"shinyApp(ui = fluidPage('shiny rowr'), server = function(input, output){})"
), "app.R")
Deploy this app (analyzing your library):
r
rsconnect::deployApp()
Create an renv snapshot:
r
renv::snapshot()
Deploy this app (using the renv.lock
):
r
rsconnect::deployApp()
Expected behaviour:
renv.lock
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.