christophergandrud / christophergandrud/imfr
imf_data doesn't return commodity data
- Dominant language
- R
- Stars
- 48
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
When I try to retrieve commodity prices with the imf_data function it returns an error saying that the data was not found, even though I specify all the arguments the function requires and the indicator exists in the IMF data portal.
How can I solve this issue?
`copper <- imf_data(
database_id = 'PCPS',
indicator = 'PCOPP',
freq = 'M',
return_raw = FALSE
)`
`Error: No data found.`
I have also tried changing the frequency values but i still get the same error.
Thank you.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the documented imf_data call with database_id='PCPS', indicator='PCOPP', and frequency='M', then inspect how this entry point builds and queries the IMF RESTful JSON API. Done means the commodity request returns data instead of “No data found,” with the relevant frequency behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100