6565# ' package \code{rcrossref} for larger queries and deep paging
6666# ' @family pubmed
6767# ' @references Newer API: \url{https://github.com/CrossRef/rest-api-doc/blob/master/rest_api.md},
68- # ' Older API: \url{http ://search.crossref.org/help/api}
68+ # ' Older API: \url{https ://search.crossref.org/help/api}
6969# ' @examples
70- # ' if (interactive() && !httr::http_error("http ://search.crossref.org/")){
70+ # ' if (interactive() && !httr::http_error("https ://search.crossref.org/")){
7171# ' BibOptions(check.entries = FALSE)
7272# ' ## 3 results from the American Statistical Association involving "regression"
7373# ' ReadCrossRef("regression", filter = list(prefix="10.1198"), limit = 3)
@@ -107,7 +107,7 @@ ReadCrossRef <- function(query = "", filter = list(), limit = 5, offset = 0,
107107 if (.is_not_nonempty_text(query ))
108108 stop(gettextf(" specify a valid %s" , sQuote(" query" )))
109109
110- results <- GET(" http ://search.crossref.org/dois" ,
110+ results <- GET(" https ://search.crossref.org/dois" ,
111111 query = list (q = query , year = year ,
112112 sort = sort , rows = limit ))
113113 }else {
@@ -122,7 +122,7 @@ ReadCrossRef <- function(query = "", filter = list(), limit = 5, offset = 0,
122122 if (length(filter ))
123123 params $ filter <- paste(paste0(names(filter )," :" ,filter ),
124124 collapse = " ," )
125- results <- GET(" http ://api.crossref.org/works" , query = params )
125+ results <- GET(" https ://api.crossref.org/works" , query = params )
126126 }
127127 fromj <- content(results , type = " application/json" , encoding = " UTF-8" )
128128 if (http_error(results )){
0 commit comments