knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
rfordummies
is an R package to accompany the book "R for Dummies", by Andrie de Vries and Joris Meys. The package contains functions to print the table of contents as well as all the code samples for every chapter.
To print the table of contents, use:
toc()
To print the code of example for the chapters, use:
ch1()
- prints all code examples of ch1ch2()
- prints all code examples of ch2ch20()
- prints all code examples of ch20Since each of the functions ch1()
to ch20()
also contains the code examples as function examples, you can do the following to run all examples of a given chapter:
example("ch20", "rfordummies")
You can install rfordummies
using:
devtools::install_github("rfordummies/rfordummies")
The book has a companion website at https://rfordummies.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.