There are four other directories that are valid, top-level directories. They are rarely used:
A demo is an .R file that lives in demo/. Demos are like examples but tend to be longer. Instead of focusing on a single function, they show how to weave together multiple functions to solve a problem.
You list and access demos with
demo(package = "httr").
demo("oauth1-twitter", package = "httr").
system.file("demo", "oauth1-twitter.R", package = "httr").
Each demo must be listed in demo/00Index in the following form:
demo-name Demo description. The demo name is the name of the file without the extension (e.g., demo/my-demo.R becomes my-demo).
By default, the demo asks for human input for each plot: “Hit to see next plot:” This behavior can be overridden by adding
devAskNewPage(ask = FALSE) to ...