Installation and loading
- Run the following line of code to install the 'httr' and 'devtools' packages:
install.packages(c("devtools", "httr"))
- Load the packages listed in Step 1 using the 'library' function:
library(devtools)
library(httr)
- Install the beaR library from the Commerce Data Service GitHub repo:
httr::set_config( config( ssl_verifypeer = 0L ));
devtools::install_github('CommerceDataService/eu.us.opendata')
- Load eu.us.opendata using the library function.
library(eu.us.opendata)
- You must first register for an API key from BEA by providing your name and email address. The key will be emailed to you.
key = 'YOUR 36-DIGIT API KEY'