This sample R code is meant for researchers new to R who want to access U.S. Census data using the 'tidycensus' package. Kyle Walker, the author of 'tidycensus', has many free resources that walk through how to use the package. This demo code is just another tool meant specifically for those who are less experienced with R.
I first wrote this code for colleagues who asked me for guidance, but decided to make it available to anyone who would benefit from consulting it.