Fixing all the examples in the Rdocs to run with R CMD check.