Aneel new download for energy_development_budget #315
Merged
giovannaribeirops merged 14 commits intomasterfrom Apr 27, 2026
Merged
Aneel new download for energy_development_budget #315giovannaribeirops merged 14 commits intomasterfrom
giovannaribeirops merged 14 commits intomasterfrom
Conversation
The original google drive has been lost. In this case, we have changed the download method.
now with this fix the user can define the year parameter how a vector. Not only a scale number.
Includes the year parameter for load_aneel and a new demonstrative example using this parameter.
giovannaribeirops
requested changes
Apr 6, 2026
Contributor
giovannaribeirops
left a comment
There was a problem hiding this comment.
Transfer changes from .md to .Rmd
Add roxygen documentation for the new year parameter in load_aneel. Clarify that it is required for energy_development_budget and ignored for other datasets. Update examples to include the new usag
Add year column consistently for energy_development_budget outputs. Apply the same behavior to both single-year and multi-year downloads. Avoid duplicating the column when year or ano already exists.
Validate energy_development_budget years at the load_aneel entry point. Fail early for missing or unsupported years with a clearer error message. Keep valid year range aligned with the available ANEEL CDE files.
Regenerate Rd files after documenting the new year argument in load_aneel. Include generated documentation updates from the package check workflow.
Update ANEEL vignette to reflect the new year argument for energy_development_budget. Document the valid 2017-2022 range, clarify that year can be a single value or a vector, and fix ANEEL usage examples.
Clarify the valid 2017-2022 range, describe single-year and multi-year usage, fix examples, and regenerate README.md from README.Rmd.
Contributor
|
As a temporary fix, it will work. I'll insert more changes into the long-term plan so after the cran-submission we can get this function back into the datazoom shape and broad its use. |
bernardo-sieira
approved these changes
Apr 27, 2026
Contributor
bernardo-sieira
left a comment
There was a problem hiding this comment.
Short-term solution
bernardo-sieira
approved these changes
Apr 27, 2026
giovannaribeirops
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new parameter (year = NULL) has been added to the load_aneel function. This parameter is required for the energy_development_budget dataset, which contains separate files for each year between 2017 and 2022.
The download is now performed directly from the ANEEL website via the following link: https://dadosabertos.aneel.gov.br/dataset/beneficiarios-da-cde
Solves #312
Note: The changes have already been tested and are fully functional.