Building your website in R
This website is built using the ‘blogdown’ R package, uploaded to a GitHub repo, then served to web with Netlify. Credit to the Hugo Tranquilpeak theme.
One advantage is that we can write in simple R Markdown, and embed+run R code easily:
mean(cars$speed)
## [1] 15.4
fit <- lm(dist ~ speed, data = cars)
fit
##
## Call:
## lm(formula = dist ~ speed, data = cars)
##
## Coefficients:
## (Intercept) speed
## -17.579 3.932