Code
$version.string version
April 23, 2024
Install or update the RStudio interface (https://www.rstudio.com/products/rstudio/download/, choose the free version). Optional but advised.
Make a folder called “OTS_REU_OS_2024”, this will be your working directory for the workshop (where you will keep all the stuff from this workshop).
Open RStudio and select the tab “Tools” then “Global Options” (last option). Select the “Code” option, then select the box for “Soft-wrap R source files”.
Also in RStudio: Select the “Pane Layout” option and move “Source” to the top left pane and “Console” to the top right pane. For those of you unfamiliar with RStudio, the source is your script, where you save code in a physical file (usually .R script) and the console prints the output of the code you run from the source. You can write code in the console, but it will not be saved in a physical file. This layout allocates more screen space to the most useful panes. Hit “Apply” and “Ok”.
Also in RStudio: Go back up to the “File” tab and select “New Project”, then select the “OTS_REU_OS_2024” directory.
Now in the R console in RStudio: Run the following code to install some R packages (remove the packages first if you have them installed already).
# install package to install packages
install.packages("sketchy")
# load sketchy
library(sketchy)
# install packages
load_packages(
packages = c(
"rgbif",
"rmarkdown",
"packrat",
"knitr",
"cowsay",
"kableExtra",
"rmdformats",
"revealjs",
"rticles",
"tufte",
"ggplot2",
"viridis",
"taxize",
github = "hadley/emo",
github = "benmarwick/rrtools",
github = "CrumpLab/vertical",
github = "crsh/papaja"
)
)
Install git (https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
Create a github account (https://github.com/signup)
Install Github Desktop (https://docs.github.com/en/desktop/installing-and-authenticating-to-github-desktop/installing-github-desktop)
On Github Desktop log in into your github account using github
Register yourself in Rpubs (https://rpubs.com/)
A few tips to make sure you will take full advantage of the workshop: