Comments (5)
I have already used the rlang:: last_error() and the rlang:: last_trace() with this results:
> rlang::last_error()
<error>
message: 404: Not Found. The series does not exist.
class: `rlang_error`
backtrace:
1. purrr::pmap_dfr(.l = params, .f = ~fredr(series_id = .x, frequency = .y))
2. purrr::pmap(.l, .f, ...)
3. global::.f(...)
4. fredr::fredr(series_id = .x, frequency = .y)
Call `rlang::last_trace()` to see the full backtrace
> rlang::last_trace()
x
1. \-purrr::pmap_dfr(.l = params, .f = ~fredr(series_id = .x, frequency = .y))
2. \-purrr::pmap(.l, .f, ...)
3. \-global::.f(...)
4. \-fredr::fredr(series_id = .x, frequency = .y)
5. +-base::do.call(fredr_request, c(fredr_args, user_args))
6. \-(function (endpoint, ..., to_frame = TRUE, print_req = FALSE, ...
from fredr.
Unfortunately this backtrace given here doesn't really explain which ID fredr()
returns the 404 for. Can you try just writing a simple for loop for your list of series IDs? Then you can identify which IDs are causing the error.
list_of_ids <- c("ICSA", "IC4WSA","PAYEMS", "NPPTTL", "UNRATE", "LNS12032194", "LNS13023706",
"LNS12032194", "AWHAETP", "CEU3000000002", "CSUSHPINSA", "PERMIT", "HOUST", "HOUST1F",
"HOUST5F", "HSN1F", "EXHOSLUSM495S", "NHSDPTS", "MORTGAGE30US", "MRTSSM44X72USS",
"RSFSXMV","ECOMSA", "UMCSENT", "PSAVERT", "HNONWPDPI", "TOTALSA", "INDPRO", "IPMAN",
"DGORDER", "NEWORDER", "CEFDFSA066MSFRBPHI", "ISRATIO", "BOPTEXP", "BOPTIMP", "TWEXB",
"CPROFIT", "PNFI", "PPIACO", "PCUOMFGOMFG", "CPILFESL", "PCEPI", "PCEPILFE", "PCETRIM1M158SFRBDAL",
"T5YIFR", "CES0500000003", "IREXFUELS", "W875RX1", "PCE", "SP500", "CPIAUCSL", "USD3MTD156N",
"FEDFUNDS", "GDPC1", "PCEC96", "FPIC1", "EXPGSC1", "IMPGSC1", "GCEC1", "A261RX1Q020SBEA")
for (i in list_of_ids) {
fredr_series(series_id = i)
}
from fredr.
Thanks, I've run the loop, and apparently, the problem is the LIBOR
from fredr.
Likely this restriction https://github.com/sboysel/fredr#restrictions
from fredr.
Likely this restriction https://github.com/sboysel/fredr#restrictions
Thanks, that was the whole problem. Keep the good work guys!
from fredr.
Related Issues (20)
- Unable to Install (Broken Dependency?) HOT 2
- Support for FRED Maps HOT 3
- Option to select Seasonally Adjusted Observation HOT 1
- upper bound too low for limit in fredr_category_series() HOT 3
- Pagination HOT 1
- Encoding error with fredr_series_observations HOT 11
- Better test environment for API requests HOT 3
- CRAN issues HOT 25
- Removed from CRAN? HOT 2
- Fredr can't return a legit series_id HOT 3
- Getting fredr back on CRAN HOT 24
- Release fredr 2.0.0
- way to traverse category trees? HOT 4
- This likely isn't an issue with your code, but something to be wary of HOT 3
- fredr() and parameter vintage_dates HOT 5
- M2 not FedFunds
- Release fredr 2.1.0 HOT 1
- fredr appears to be completely broken on my R setup HOT 6
- Capture multiple series simultaneously? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fredr.