Skip to content

Commit

Permalink
fix #74: typo x -> url (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTaylor authored Feb 21, 2025
1 parent 102aa2c commit 05a861a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ resolve_url = function(url, code, ext, encode = TRUE) {

# download a file to a local dir if the local file doesn't exist
download_url = function(url, dir = '.', file = NULL, handler = NULL) {
if (!is.character(dir) || !is_https(url) || grepl('^http://127.0.0.1', x))
if (!is.character(dir) || !is_https(url) || grepl('^http://127.0.0.1', url))
return(url)
f = file %||% gsub('^https?://|[?#].*$', '', url)
p = URLdecode(f)
Expand Down

0 comments on commit 05a861a

Please sign in to comment.