Skip to content
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

Update package to support EIA API v2 #15

Merged
merged 158 commits into from
Oct 31, 2023
Merged

Update package to support EIA API v2 #15

merged 158 commits into from
Oct 31, 2023

Conversation

leonawicz
Copy link
Member

Full package refactor due to fundamental changes to EIA API from version 1 to version 2.
Plus various other updates.

…om tests; rework function docs with markdown notation
@@ -1,3 +1,14 @@
test_that("EIA key availability startup message works as expected", {
Copy link
Member Author

@leonawicz leonawicz Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if we need to test this one. The logic is good! But this kind of test may not be reliable in a variety of environments and the detaching and attaching of the package being tested is not common practice. We don't need to really test the startup up message. Definitely do not want to add devtools as any kind of package requirement. It brings in like a million other packages. I'd say just remove this test. If you want, we can include a covr file exclusion for zzz.R. (Comment updated)

Copy link
Member Author

@leonawicz leonawicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment on test-dirs.R message.

@@ -25,11 +25,11 @@ test_that("directory functions returns as expected", {
expect_s3_class(x, "tbl_df")
expect_equal(dim(x), c(6, 3))

msg <- paste0(
suppressMessages(msg <- message(
Copy link
Member Author

@leonawicz leonawicz Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to do that. You just need to escape the parentheses in your expected string with \( and \).

@leonawicz leonawicz merged commit 3774dc0 into master Oct 31, 2023
6 of 8 checks passed
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.

Next eia package release for API v2
2 participants