Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
prepend utils::
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Mar 24, 2021
1 parent 0a703b2 commit b241b5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/get_historical_weather.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ get_historical <- get_historical_weather
op <- options()
on.exit(options(op))
options(HTTPUserAgent = paste0("{bomrang} R package (",
packageVersion("bomrang"),
utils::packageVersion("bomrang"),
") https://github.com/ropensci/bomrang"))

# CRAN NOTE avoidance
Expand Down Expand Up @@ -380,7 +380,7 @@ get_historical <- get_historical_weather
.get_zip_and_load <- function(url) {

USERAGENT <- paste0("{bomrang} R package (",
packageVersion("bomrang"),
utils::packageVersion("bomrang"),
") https://github.com/ropensci/bomrang")
# set a custom user-agent, restore original settings on exit
# required for #130 - BOM returns 403 for RStudio
Expand Down
2 changes: 1 addition & 1 deletion R/internal_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
.get_url <- function(remote_file) {

USERAGENT <- paste0("{bomrang} R package (",
packageVersion("bomrang"),
utils::packageVersion("bomrang"),
") https://github.com/ropensci/bomrang")
# set a custom user-agent, restore original settings on exit
# required for #130 - BOM returns 403 for RStudio
Expand Down

0 comments on commit b241b5e

Please sign in to comment.