Getting started in R is easy! R and many helpful tools are open source and free for anyone to use. To start out, you will need to download and install the latest version of R. To make working in R easier, we recommend then installing RStudio.
Here is a list of resources to help you get started:
Install R - Install R first
Install RStudio - RStudio is a very powerful and helpful R environment
USGS Service Desk R Installation Instructions - Detailed instructions for USGS specific machines.
Free online R training:
- Coursera R Programming (audit the course for free by clicking "Enroll", log in, then "audit")
- Codeschool Try R
USGS R Training - Periodically, in-person R trainings are held at USGS Science centers
USGS Online Resources
Introduction to R Curriculum - Learn the basics of reproducible workflows in R.
R Package Development Training - Learn best practices of R-package development and maintenance.
Course Specific Material - Notes from specific in-person trainings (see Training for more information).
To learn more about how to schedule a training, visit the USGS-R training homepage.
Help using R
Help in the R environment - Most R functions and packages have built-in documentation
R questions answered - Stackoverflow has to both common and challenging questions
R listserv archive search - The R listserv archive is a large resource of R questions, answers, and coding discussions
Google - Google is a remarkable resource. If you start your search with [R], it will return better results
USGS R resources
Github USGS-R - Github group for open R tool development in the USGS
GRAN - GRAN has many tools written specifically to help USGS employees
Subscribe to GS-W_R_Users@usgs.gov - The USGS R-users email list
Suggest USGS-R functionality - Discuss USGS package functionality, ask questions, exchange ideas.
For R developers and contributors
Contribute to the USGS-R Github repository or GRAN - How USGS-R can help share your code
GRAN Guidelines - Guidelines for contributing tools to GRAN
Advanced R Style Guide - Useful R code style guide for writing readable and maintainable code
R Packages - Instructions on how to build new R packages