I’ve compiled some general advice and a lot of resources for R, programming, and general research. Hopefully they will be of some use to you.
R is a very popular language, and there are lots of introductory (or advanced) guides to R floating around the internet. Here are a few.
Style matters. It helps with collaboration. It helps with getting better feedback from me. And it helps your future self judge your current self less harshly when you return to old R scripts.
Here are some other resources on research, writing, presenting, and other activities relevant to (academic) research.