beaUpdateMetadata: Download BEA metadata into library/data folder if needed

Description Usage Arguments Value Examples

Description

Download BEA metadata into library/data folder if needed

Usage

1
beaUpdateMetadata(datasetList, beaKey)

Arguments

datasetList

list of BEA datasets to update local metadata file for (e.g., list('NIPA', 'FixedAssets'))

beaKey

Your API key

Value

Nothing. This updates local .RData files to be used in beaSearch.

Examples

1
beaUpdateMetadata(list('RegionalData', 'NIPA'), beaKey = 'yourAPIkey')

Example output

Loading required package: data.table
Creating a generic function for 'toJSON' from package 'jsonlite' in package 'googleVis'
Note: As of February 2018, beaGet() requires 'TableName' for NIPA and NIUnderlyingDetail data instead of 'TableID.' See https://github.us-bea/bea.R for details.
[1] "API metadata not returned.  Verify that you are using a valid API key, represented as a character string."
Warning messages:
1: In bea.R::beaGet(beaMetaSpecs, asList = FALSE, asTable = FALSE,  :
  Invalid API key: yourAPIkey
2: In beaUpdateMetadata(list("RegionalData", "NIPA"), beaKey = "yourAPIkey") :
  API metadata not returned.  Verify that you are using a valid API key, represented as a character string.

bea.R documentation built on May 2, 2019, 1:30 p.m.