4 Resources
4.1 General
- This link contains a number of truly fantastic cheat sheets, documenting everything from RStudio itself to data visualization and machine learning.
- To read more about using R, take a look at the following website, built by Chapman and Hall
- As always, it’s worth referencing stackoverflow if you’re ever confused.
4.2 Package Development
- There’s a wonderful cheat sheet for package development linked here. This also describes a lot of key components of the testthat package.
- If you are looking for a very simple example of a package, the devex package can be found here. If you’re having trouble understanding the workflow for package development, it’s worth looking through the
devex
package and making sure you understand all its components. Better yet, you can practice usingroxygen2
anddevtools
by creating a very small/useless package (2-3 simple functions) - It can sometimes be instructive to look through the source code and documentation for
devtools
.
Additionally, as you build larger and more complex packages, you might need a deeper understanding of package structure. For a slightly more in-depth explanation of package development, you’ll want to reference Hadley Wickham’s R Packages. For a serious dive into package mechanics, you should consult the official R Extensions Manual, which is published by CRAN. However, at least for mid-sized packages, this guide probably has given you most of what you need to know.
4.3 Version Control
- The official GitHub cheat sheet lists all of the general commands you’ll need
- Karl Broman’s tutorial runs you through initializing a repository
- Atlassian’s table of the .gitignore syntactical rules is listed here.
- Here are the links to the build configuration docs for Appveyor and Travis.
If you’re interested in reading more:
4.4 IDEs
- This page lists some more of RStudio’s advantages.