Everything you need to know about R

In this post I maintain all useful references for someone want to write nice R code.

Google’s R Style Guide at google

R is a high-level programming language used primarily for statistical computing and graphics. The goal of the R Programming Style Guide is to make our R code easier to read, share, and verify. The rules below were designed in collaboration with the entire R user community at Google.

Installing R packages at r-bloggers

This is a short post giving steps on how to actually install R packages.

Managing your projects in a reproducible fashion at nicercode

Managing your projects in a reproducible fashion doesn’t just make your science reproducible, it makes your life easier.

Creating R Packages: A Tutorial at cran

This tutorial gives a practical introduction to creating R packages. We discuss how object oriented programming and S formulas can be used to give R code the usual look and feel, how to start a package from a collection of R functions, and how to test the code once the package has been created. As running example we use functions for standard linear regression analysis which are developed from scratch

How to write trycatch in R at stackoverflow

Welcome to the R world 😉

Debugging with RStudio at RStudio

RStudio includes a visual debugger that can help you understand code and find bugs.

Optimising code at adv-r

Optimising code to make it run faster is an iterative process:

  1. Find the biggest bottleneck (the slowest part of your code).
  2. Try to eliminate it (you may not succeed but that’s ok).
  3. Repeat until your code is “fast enough.”

This sounds easy, but it’s not.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s