Skip to content

Commit

Permalink
Add dummy function to ensure httr2 is picked up
Browse files Browse the repository at this point in the history
Avoids CRAN note when all httr2 references are inside R6 methods
  • Loading branch information
al-obrien committed Oct 28, 2023
1 parent 5c67720 commit cb2c12e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
if(dir.exists(Sys.getenv("ROSV_CACHE_GLOBAL"))) try(unlink(Sys.getenv("ROSV_CACHE_GLOBAL"), TRUE, TRUE, TRUE))
Sys.unsetenv("ROSV_CACHE_GLOBAL")
}

# Function to enforce httr2 use to remove CRAN note (most was nested in R6 methods)
enforce_httr2_use <- function() {
httr2::request('dummyURL')
}

0 comments on commit cb2c12e

Please sign in to comment.