loading

Installation and loading

  1. Run the following line of code to install the 'httr' and 'devtools' packages:
    install.packages(c("devtools", "httr"))
  1. Load the packages listed in Step 1 using the 'library' function:
    library(devtools)
    library(httr)
  1. 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')
  1. Load eu.us.opendata using the library function.
    library(eu.us.opendata)
  1. 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'