demo() # for attached packages
## All available demos:
demo(package = .packages(all.available = TRUE))
## Display a demo, pausing between pages
demo(lm.glm, package = "stats", ask = TRUE)
## Display it without pausing
demo(lm.glm, package = "stats", ask = FALSE)
ch <- "scoping"
demo(ch, character = TRUE)
## Find the location of a demo
system.file("demo", "lm.glm.R", package = "stats")
Run the code above in your browser using DataLab