Learn R Programming

editbl (version 1.3.0)

runDemoApp: Run a demo app

Description

Run a demo app

Usage

runDemoApp(app = "database", ...)

Value

An object that represents the app. Printing the object or passing it to runApp() will run the app.

Arguments

app

demoApp to run. Options: database / mtcars / custom

...

arguments passed onto the demoApp

Details

These apps are for illustrative purposes.

Examples

Run this code
## Only run this example in interactive R sessions
if(interactive()){
 
  # Database
  tmpFile <- tempfile(fileext = ".sqlite")
  file.copy(system.file("extdata", "chinook.sqlite", package = 'editbl'), tmpFile)

  conn <- connectDB(dbname = tmpFile)

  runDemoApp(app = "database", conn = conn)
  DBI::dbDisconnect(conn)

  unlink(tmpFile)

  # mtcars
  runDemoApp(app = "mtcars")

  # Any tibble of your liking
  runDemoApp(app = "custom", dplyr::tibble(iris))
}

Run the code above in your browser using DataLab