Automating data pulls from the US Census API

How to use R to automate data pulls from the US Census API.