# this line specifies options for default options for all R Chunksknitr::opts_chunk$set(echo=T, highlight=T)# suppress scientific notationoptions(scipen=100,getSymbols.warning4.0 =FALSE)# install helper package (pacman), if neededif (!require("pacman")) install.packages("pacman", repos ="http://lib.stat.cmu.edu/R/CRAN/")
Loading required package: pacman
# install and load required packages# pacman should be first package in parentheses and then list otherspacman::p_load(pacman,tidyverse, knitr)# verify packages (comment out in finished documents)p_loaded()
Colleague should be able to follow memo to update dashboard quickly and seamlessly when new data are available.
I (or TAs) will follow memo and verify that instructions are clear, links are functional, and I can update dashboard based on this memo. when new data are available.
Questions about Project and Templates?
R Markdown (.Rmd) and Quarto (.qmd) formats
RStudio is currently in transition
Documents can be rendered from R Markdown (.Rmd) or Quarto (.qmd)
HTML, Word documents, PDf
R Markdown will be available for forseeable future
Download this document and save it for when you have to apply for jobs and answer questions about your skillset.
Other companies are quickly developing tutorial training too (some are good)
Sharing and Collaborating - GitHub vs. RPubs
Last week I introduced you to Rpubs which is ideal from sharing a dashboard.
Alternatively, you may have already come across GitHub in searching for files or a package.
Slides for this course are stored on GitHub
Required for files where data, code and text are maintained together as a project, referred to as a repository or repo.
Not required for finished dashboard.
GitHub is an online code sharing and code development platform.
Many R packages start as development code on GitHub and over time they are refined and published.
More about GitHub
Once you create free account, you can learn more about how it works in this tutorial.
Collaborative coding is common on GitHub but is a little more complex than working on a shared drive.
Developers of games, R packages, other software, etc., have huge code files and need to protect them.
There is a system in place (version control) where people can create a project with multiple code versions and edits. Over time a project develops more and more branches, like a tree, but the trunk.
Original code is preserved and changes can be incorporated as they are verified and approved.
Some GitHub links
Some tutorial links for collaborative coding on GitHub: