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
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
Welcome to the R world 😉
Debugging with RStudio
RStudio includes a visual debugger that can help you understand code and find bugs.
Optimising code to make it run faster is an iterative process:
Find the biggest bottleneck (the slowest part of your code). Try to eliminate it (you may not succeed but that’s ok). Repeat until your code is “fast enough.” This sounds easy, but it’s not.