Use server functions to serve built-in examples of this package.
Usage
serve_example(name, FUN, ..., run = interactive())Arguments
- name
the directory name of the example under the directory
system.file('examples', package = 'servr')- FUN
a server function that takes the example path as its first argument, e.g.
httd, orrmdv1- ...
other arguments passed to
FUN- run
whether to run the example (this is mainly for
R CMD checkpurposes: the examples will not be really served when the R session is not interactive, so they will not blockR CMD check)