run: Run learnr tutorials, Shiny applications from the...

View source: R/run.R

runR Documentation

Run learnr tutorials, Shiny applications from the BioDataScience2 package, or update it

Description

Start a learnr tutorial or a Shiny application from the BioDataScience2 package, possibly after updating it.

Usage

run(tutorial, ..., update = ask, ask = interactive())

run_app(app, ..., update = ask, ask = interactive(), in.job = TRUE)

update_pkg()

Arguments

tutorial

The name of the tutorial to use. If not provided, a list of available tutorials is displayed.

...

Further arguments passed to learnr::run_tutorial() or to shiny::runApp().

update

Do we check for an updated version first, and if it is found, update the package automatically?

ask

In case tutorial or app is not provided, do we ask to select in a list?

app

The name of the Shiny application to use. If not provided, a list of available applications is displayed.

in.job

Should the application be run in a Job in RStudio (TRUE by default)?

Value

If tutorial or app is not provided, in interactive mode with ask = TRUE, you have to select one in a list, and in non interactive mode, or ask = FALSE, it returns the list of all available tutorials or Shiny applications in the BioDataScience2 package.

Examples

## Not run: 
# To start from a list of available tutorials:
run()
# Idem for Shiny applications:
run_app()

## End(Not run)

BioDataScience-Course/BioDataScience2 documentation built on April 12, 2025, 9:45 a.m.