Skip to content

Commit

Permalink
Add single line exclusion since that is all that's needed and the lin…
Browse files Browse the repository at this point in the history
…e number is unlikely to change any time soon for this context.
  • Loading branch information
leonawicz committed Oct 30, 2023
1 parent d3c1adc commit d376136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Test coverage
run: |
covr::codecov(
line_exclusions = list("R/zzz.R" = 4),
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
Expand Down
4 changes: 1 addition & 3 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
.onAttach <- function(libname, pkgname){
options(eia_antidos = 1)
if(Sys.getenv("EIA_KEY") == ""){
packageStartupMessage(
"EIA_KEY not found. See `vignette(\"api\", \"eia\")` for key storage options."
)
packageStartupMessage("EIA_KEY not found. See `vignette(\"api\", \"eia\")` for key storage options.")
}
}

Expand Down

0 comments on commit d376136

Please sign in to comment.