A demo repository of using GitHub/Rstudio workflow
- Fork this repository to your own GitHub account
- Install RStudio
- Copy the link to the repository in your account, should be something like https://github.com/your_username/StudentDemo
- Create a new project in Rstudio, select "From version control", enter the URL and follow the instructions.
- Feel free to play around with the examples in this repository to learn Git, Rmarkdown and the Rstudio integration.
Tip! Files that are markdownfiles can be edited and commited right here in GitHub! Which comes in handy for meeting notes and README documents.
GitHub introduction:
Rstudio introduction:
Markdown examples of meeting-notes be found in the meetings folder.
Can be found in the docs
folder.
R uses alot of packages that contain code and functions, these may be for data handling, integrating with services or creating plots and graphs. The most common that you will likely use is tidyverse(Which is a collection of packages), devtools and ggplot2.
Within the lab we have an R package called noacsr that is under development. This package contains a function to create a new project that creates the files that you will need. To install these packages in R do:
install.packages(c("devtools", "tidyverse", "ggplot2")
library(devtools)
To install the noacsr package, you need to install it from GitHub like this:
devtools::install_github("martingerdin/noacsr")
And start using with:
library(noacsr)