Skip to content

Commit 7721b5a

Browse files
committed
Merge PR #44
2 parents 65f42a3 + 614fb4c commit 7721b5a

34 files changed

+118
-118
lines changed

.Rbuildignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ RefManageR-Ex.R
1515
^paper.bib$
1616
^paper.md$
1717
^codemeta.json$
18-
^CONTRIBUTING.md$
18+
^CONTRIBUTING.md$

.appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
init:
22
ps: |
33
$ErrorActionPreference = "Stop"
4-
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
4+
Invoke-WebRequest https://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
55
Import-Module '..\appveyor-tool.ps1'
66
install:
77
ps: Bootstrap
@@ -14,10 +14,10 @@ environment:
1414
matrix:
1515
- R_VERSION: devel
1616
POPPLERQT5FILE: 'dev\windows\appveyor\poppler-qt5-debug.zip'
17-
CRAN: http://cran.rstudio.com
17+
CRAN: https://cran.rstudio.com
1818
- R_VERSION: release
1919
RTOOLS_VERSION: 32
20-
CRAN: http://cran.rstudio.com
20+
CRAN: https://cran.rstudio.com
2121
POPPLERQT5FILE: 'dev\windows\appveyor\poppler-qt5-debug.zip'
2222
global:
2323
NOT_CRAN: true
@@ -27,7 +27,7 @@ build_script:
2727
# - travis-tool.sh install_r devtools
2828
# - Rscript -e 'devtools::install_github("romainfrancois/bibtex")'
2929
# - travis-tool.sh install_github romainfrancois/bibtex
30-
# - Rscript -e "install.packages('covr', repos = 'http://cran.rstudio.com')"
30+
# - Rscript -e "install.packages('covr', repos = 'https://cran.rstudio.com')"
3131
# - travis-tool.sh install_github jimhester/covr
3232
# - travis-tool.sh install_github rstats-db/RSQLite
3333

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# see http://docs.travis-ci.com/user/languages/r/
1+
# see https://docs.travis-ci.com/user/languages/r/
22
language: r
33

44
# Be strict when checking our package
55
warnings_are_errors: true
66

77
# before_script:
8-
# - wget http://poppler.freedesktop.org/poppler-0.32.0.tar.xz
8+
# - wget https://poppler.freedesktop.org/poppler-0.32.0.tar.xz
99
# - tar poppler-0.32.0.tar.xz
1010
# - export PATH=$PATH:$PWD/poppler-0.32.0
1111

@@ -14,7 +14,7 @@ before_install:
1414
- echo `which pdfinfo`
1515

1616
# install:
17-
# - wget http://poppler.freedesktop.org/poppler-0.32.0.tar.xz
17+
# - wget https://poppler.freedesktop.org/poppler-0.32.0.tar.xz
1818
# - tar -xJf poppler-0.32.0.tar.xz
1919
# - cd poppler-0.32.0 && ./configure --prefix=/usr && make && make install
2020

@@ -27,7 +27,7 @@ r_packages:
2727
- covr
2828

2929
r_build_args: '--no-build-vignettes'
30-
30+
3131
# remove default --as-cran so testthat tests are run (also avoids to useless check notes)
3232
r_check_args: '--ignore-vignettes'
3333

R/04InternalFunctions.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ ProcessArxiv <- function(arxinfo){
676676
regm <- regmatches(arxinfo, m)
677677
res$eprint <- regm[[1]][2]
678678
}
679-
res$url <- paste0('http://arxiv.org/abs/', res$eprint)
679+
res$url <- paste0('https://arxiv.org/abs/', res$eprint)
680680
res
681681
}
682682

@@ -723,7 +723,7 @@ ProcessArxiv <- function(arxinfo){
723723
## useBytes = TRUE))[[1]][2])){
724724
## res$eprinttype <- "arxiv"
725725
## res$eprint <- eprint
726-
## res$url <- paste0("http://arxiv.org/abs/", eprint)
726+
## res$url <- paste0("https://arxiv.org/abs/", eprint)
727727
## attr(res, "entry") <- "misc"
728728
## }else{
729729
## if (is.na(numbers) || numbers == "" || as.character(year) == numbers){
@@ -797,7 +797,7 @@ ParseGSCitesNew <- function(title, author, year, src, cited_by, encoding,
797797
useBytes = TRUE))[[1]][2])){
798798
res$eprinttype <- "arxiv"
799799
res$eprint <- eprint
800-
res$url <- paste0("http://arxiv.org/abs/", eprint)
800+
res$url <- paste0("https://arxiv.org/abs/", eprint)
801801
attr(res, "entry") <- "misc"
802802
}else{
803803
if (is.na(numbers) || numbers == "" || as.character(year) == numbers){

R/BibEntryAssignOp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#' title = "My Work", year = "2012")
1818
#' bib$year <- 2014
1919
#' bib$author <- "McLean, M. W. and Carroll, R. J."
20-
#' bib$url <- "http://example.com"
20+
#' bib$url <- "https://example.com"
2121
#' bib
2222
#'
2323
#' bib <- c(bib, as.BibEntry(citation()))

R/BibEntryReplaceOp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
#' ## add month to Serban et al., add URL and urldate to Jennings et al., and
2727
#' ## add DOI and correct journal to Garcia et al.
2828
#' bib[seq_len(3L)] <- list(c(date="2013-12"),
29-
#' c(url="http://bsb.eurasipjournals.com/content/2013/1/13",
3029
#' urldate = "2014-02-02"),
3130
#' c(doi="10.1093/bioinformatics/btt608",
3231
#' journal = "Bioinformatics"))
32+
#' c(url="https://bsb.eurasipjournals.com/content/2013/1/13",
3333
#' print(bib[seq_len(3L)], .opts = list(sorting = "none", bib.style = "alphabetic"))
3434
#' bib2 <- bib[seq_len(3L)]
3535
#' bib2[2:3] <- bib[5:6]

R/CommonFormatFuns.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ GetFormatFunctions <- function(docstyle = "text", DateFormatter){
222222

223223
if (eprinttype %in% c("arxiv", "pubmed", "jstor")){
224224
base.url <- switch(eprinttype,
225-
jstor = "http://www.jstor.org/stable/",
226-
arxiv = "http://arxiv.org/abs/",
225+
jstor = "https://www.jstor.org/stable/",
226+
arxiv = "https://arxiv.org/abs/",
227227
pubmed = paste0("https://eutils.ncbi.nlm.nih.",
228228
"gov/entrez/eutils/",
229229
"elink.fcgi?dbfrom=pubmed&",
@@ -268,9 +268,9 @@ GetFormatFunctions <- function(docstyle = "text", DateFormatter){
268268

269269
if (eprinttype %in% c("arxiv", "pubmed", "jstor")){
270270
base.url <- switch(eprinttype,
271-
jstor = "http://www.jstor.org/stable/",
272-
arxiv = "http://arxiv.org/abs/",
273-
pubmed = paste0("http://eutils.ncbi.nlm.nih.",
271+
jstor = "https://www.jstor.org/stable/",
272+
arxiv = "https://arxiv.org/abs/",
273+
pubmed = paste0("https://eutils.ncbi.nlm.nih.",
274274
"gov/entrez/eutils/",
275275
"elink.fcgi?dbfrom=pubmed&",
276276
"cmd=prlinks&retmode=ref&id="),

R/GetBibEntryWithDOI.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' API is temporarily
1515
#' written to a file and then read back into \code{R} and return as a
1616
#' \code{BibEntry} object.
17-
#' @references \url{http://www.doi.org/tools.html}
17+
#' @references \url{https://www.doi.org/tools.html}
1818
#' @importFrom httr http_error GET content http_error modify_url
1919
#' @importFrom utils URLdecode
2020
#' @seealso \code{\link{ReadCrossRef}}, \code{\link{BibEntry}}

R/GetDOIs.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#' @family pubmed
1313
#' @note Only entries in \code{bib} that do not already contain a value in the
1414
#' \sQuote{doi} field will be searched for.
15-
#' @references \url{http://search.crossref.org/help/api}
15+
#' @references \url{https://search.crossref.org/help/api}
1616
#' @examples
17-
#' if (interactive() && !httr::http_error("http://search.crossref.org")){
17+
#' if (interactive() && !httr::http_error("https://search.crossref.org")){
1818
#' BibOptions(check.entries = FALSE, sorting = "none")
1919
#' bib <- ReadBib(system.file("Bib", "RJC.bib", package = "RefManageR"))[1:5]
2020
#' bib <- GetDOIs(bib)
@@ -31,7 +31,7 @@ GetDOIs <- function(bib){
3131
headers <- list('Accept' = 'application/json',
3232
'Content-Type' = 'application/json')
3333

34-
## json.res <- postForm("http://search.crossref.org/links",
34+
## json.res <- postForm("https://search.crossref.org/links",
3535
## .opts = list(postfields = json.bib, httpheader = headers))
3636
## json.res <- try(fromJSON(json.res), TRUE)
3737
json.res <- httr::POST("https://search.crossref.org/links", body = json.bib,

R/ReadCrossRef.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
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

Comments
 (0)