Skip to content

Commit 3814877

Browse files
author
Oliver Keyes
committed
CRAN warning
1 parent f4f7122 commit 3814877

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ importFrom(httr,content)
1919
importFrom(httr,stop_for_status)
2020
importFrom(httr,user_agent)
2121
importFrom(jsonlite,fromJSON)
22+
importFrom(utils,URLencode)

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Version 1.3.0
33

44
BUG FIXES
55

6+
* Various miscellaneous internal improvements.
67
* `limit` introduced as an argument to pages_in_category - thanks to Ben Marwick for finding the bug.
78
* `limit` introduced as an argument to page_links - thanks to Hui Li of the Universität Heidelberg for the initial report.
89

R/query.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
#'@param ... further arguments to httr's GET.
1515
#'@export
1616
#'@importFrom httr GET user_agent stop_for_status
17+
#'@importFrom utils URLencode
1718
query <- function(url, out_class, clean_response = FALSE, ...){
1819

1920
#Encode url, add "http://", query
20-
url <- paste0("http://",URLencode(url))
21+
url <- paste0("http://",utils::URLencode(url))
2122
args <- list(...)
2223
if(length(args) > 0 && "config" %in% class(args[[1]]) && "useragent" %in% names(args[[1]])){
2324
response <- httr::GET(url, ...)

0 commit comments

Comments
 (0)