{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/407ae8d0f00e4a05941a9a09e5e13f96\" frameborder=\"0\" width=\"1728\" height=\"1296\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1296,"width":1728,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1296,"thumbnail_width":1728,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/407ae8d0f00e4a05941a9a09e5e13f96-00001.gif","duration":5760,"title":"Getting started with RMarkdown","description":"My GitHub repository for you to clone or copyhttps://github.com/robabsmith/Rmarkdown-project-templatePrograms to install:R distribution (search: R CRAN)Latex distribution (search: MacTeX for OSX or MiKTeX for Windows)RStudioR packages (explained below)Note: I forgot to tell you run through the installation of R PackagesThere are a bunch in the code that you wont need, but it won't harm your system to install them.In the \"code\" folder in the repository is a file called:\"Remove and install all packages.R\" which includes all necessary packages, plus bundle of other really useful ones - such as for importing excel files etc. The file has some sparse documentation that categorises the packages roughly.Otherwise you can run this code in an R script, and install any packages that RStudio identifies as missing:# R packages you will need to install include:install.packages(\"rmarkdown\")install.packages(\"bookdown\")install.packages(\"dplyr\")install.packages(\"tidyverse\")install.packages(\"ggplot2\")# For downloading data from Statistics Denmark you will needinstall.packages(\"devtools\")library(devtools)devtools::install_github(\"mikkelkrogsholm/statsDK\")There is also a second R file in the \"code\" folder that includes direct sourcing from a couple of other locations, such as OECD and Eurostat."}