-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A few thoughts on the implementation #13
Comments
@DavisVaughan: Thanks for using the package and for the thoughts!
multiple_series_ids <- c("GNPCA", "GNP", "FEDFUNDS")
names(multiple_series_ids) <- multiple_series_ids
purrr::map_dfr(
.x = multiple_series_ids,
.f = function(x) fredr_series(series_id = x) %>%
dplyr::rename(value = x),
.id = "series_id"
) I will prioritize as an enhancement.
|
I can help too over the next week or so if you'd accept the PR! |
Absolutely. Thanks! |
I think things are looking pretty good. Want me to take one more look at the new vignettes? Anything else? Update) I've added all my edits. Things are looking great! |
On CRAN submission: running into
I think it's related to recent changes in I'll have to come back to this a bit later. |
I reran the git checks manually and submitted the package to CRAN. Will update on feedback. A huge thanks for all the help, @DavisVaughan! |
Happy to hear it and happy to help! Keep me updated and I'll promote on Twitter! |
I would love to see this package on CRAN. I was just about to write an interface to FRED that does more than what we do in
tidyquant
(like accessing all the params of the API) when I discovered this. I think it has great potential!If you don't mind, I'd like to suggest a few features that I personally would like. I'm hardcore biased towards
tidyverse
, so take it with a grain of salt.Allow
fredr_series
to return multiple series in 1 call. Under the hood it could callmap()
to make multiple calls to the API, but it would be nice as a user facing feature to let us input a vector of series ids.With regards to the above, it would then make sense to change from returning
xts
to returning atibble
. This could have a column,id
that contained theseries_id
and you could stack series together into 1 tidy data frame. It would be up to the user to ensure that each series allowed for the specified frequency and other params, or those could be vectorized as well.I'm not sure the
fredr_key()
function is working perfectly. I was not in an RStudio project, and tried to set it for the first time withfredr_key("my_key")
and it errored out because I already had an.Renviron
file. Inriingo
I let the user set the key temporarily withriingo_set_token()
which sets anoption()
or they can set it permanently themselves by modifying their.Renviron
file. This way I'm not directly messing with their.Renvion
file.The FRED API has a lot of useful endpoints. Would it make sense to expose all of them through something like
fredr_series()
,fredr_series_observations()
,fredr_series_release()
, ... and so on forseries
and fortags
and everything else? It would work well with tab completion.Lastly, I think the FRED API is relatively stable in terms of parameters that get passed through. To be easier on the user, maybe you could provide things such as
series_id
,observation_start
, and all the other api params as function params for each of the above suggested endpoints. Withroxygen2
and@inheritParams
, it would really only be a matter of documenting them once, and sharing them across all functions that used them, so probably not too much work. This would be nice as it could keep the user from having to even go to the API docs for more info.The text was updated successfully, but these errors were encountered: