Skip to content

Conversation

@jyoung1983
Copy link

Hello,
I am using the following code to try and pull data from the GDPbyIndustry table:

`my_spec_list <- list('UserID' = Sys.getenv("bea_key"),
'Method' = 'GetData',
'datasetname' = 'GDPbyIndustry)',
'Frequency' = 'A',
'TableID' = 'ALL',
'Year' = '2019',
'Industry' = 'ALL',
'ResultFormat' = 'json')

gdp_by_industry <- beaGet(my_spec_list, asWide = FALSE)`

I keep getting the error message Warning message:

In bea.R::bea2List(beaPayload) :
This API request is a possible cross-site scripting attempt. Please check your API request.

Can someone help me figure out why I keep getting this error?

* bea2Tab now reshapes tables based on "Year" as well as "TimePeriod" (prioritizes "TimePeriod" if both are present), fixing issue with reshaping several industry and international datasets
* Silence metadata file update
Fixes to beaSearch function:
- Drop obsolete RegionalData set
- Handle regional and national separately
--- Warning if account area search index missing
--- Return results from one or the other even if both not found
Note about patch (v1.0.2)
Fix NULL for tables in updatemetadata function
Update to reflect new metadata structure, fixing beaSearch()
Change from beaGet(list(... , "TableID" = "[TableIdn]", ...)) to beaGet(list(... , "TableName" = "[TableId]", ...)); old table IDs became obsolete. Use beaSearch('[some NIPA value]', beaKey) or beaParamVals(beaKey, 'NIPA', 'TableName') to check for new table IDs to use with TableName parameter.
beaGet requires TableID for fixedassets, TableName for NIPA and NIUnderlyingDetail
* Change from www.bea.gov to apps.bea.gov
* Add .onLoad message about change from TableID => TableName
* Update GitHub URL in DESCRIPTION
@samudzi
Copy link

samudzi commented Sep 7, 2020

I do not believe that this repo is actively maintained

…improved error handling, update search function to reflect latest changes in dataset metadata, and temporarily remove visualization function.
...without notes. Needed to make some changes to the onLoad and onAttach events and the LICENSE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants