# Install required packages (always): # install.packages("tidyverse", "ds4psy") # Load required packages (always): library(tidyverse) library(ds4psy)
Write your text here.
Put your R code in chunks:
# A unique chunk_name helps to keep track of your various chunks later. # R will evaluate the code in this chunk and print the result: v <- 1:4 sum(v)
##  10
To convert an
.Rmd source file into
Command + Shift + K).
If your R code contains errors, the document will fail to knit (and print an error message that specifies the reason or chunk name with problems). Thus, if your document fails to knit, you need to go through your code (in a chunk-by-chunk fashion) to find and fix the error.
See http://rmarkdown.rstudio.com for further information.