done.Rddone collects the entire contents created so far using output
functions (such as out) and creates a
WebResult object that can be returned from the
run function
done(..., cmd = "html", type = "text/html; charset=utf-8")Returns a WebResult object that can be returned from the
run function.
Some objects can override the default command and type value. For
example, if the document consits solely of a plot then the content
type is taken from the plot and command changed to "tmpfile".