Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
fix #186 fix #187
Browse files Browse the repository at this point in the history
pull out SI get fxns
pull out all remaining httr code
depends on dev crul version with intermediate headers
  • Loading branch information
sckott committed Jan 16, 2019
1 parent 98b0e71 commit 01cd9e0
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 685 deletions.
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ Language: en-US
VignetteBuilder: knitr
Roxygen: list(wrap = FALSE, markdown = TRUE)
Imports:
crul (>= 0.4.0),
httr (>= 1.3.1),
crul (>= 0.6.2.9334),
magrittr,
xml2 (>= 1.1.1),
jsonlite,
Expand All @@ -42,12 +41,14 @@ Imports:
pdftools,
storr,
tibble,
digest
digest,
httr
Suggests:
roxygen2 (>= 6.1.1),
testthat,
knitr
RoxygenNote: 6.1.1
Remotes: ropensci/crul@intermediate-headers
X-schema.org-applicationCategory: Literature
X-schema.org-keywords: text-mining, literature, pdf, xml, publications, citations, full-text, TDM
X-schema.org-isPartOf: https://ropensci.org
13 changes: 0 additions & 13 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ S3method(ft_get,default)
S3method(ft_get,ft)
S3method(ft_get,ft_links)
S3method(ft_get,list)
S3method(ft_get_si,character)
S3method(ft_get_si,ft)
S3method(ft_get_si,ft_data)
S3method(ft_links,character)
S3method(ft_links,ft)
S3method(ft_links,ft_ind)
Expand Down Expand Up @@ -83,16 +80,6 @@ export(tabularize)
importFrom(aRxiv,arxiv_search)
importFrom(crul,HttpClient)
importFrom(digest,digest)
importFrom(httr,GET)
importFrom(httr,HEAD)
importFrom(httr,POST)
importFrom(httr,content)
importFrom(httr,content_type)
importFrom(httr,stop_for_status)
importFrom(httr,timeout)
importFrom(httr,upload_file)
importFrom(httr,write_disk)
importFrom(jsonlite,fromJSON)
importFrom(magrittr,"%>%")
importFrom(microdemic,ma_abstract)
importFrom(microdemic,ma_evaluate)
Expand Down
9 changes: 9 additions & 0 deletions R/defunct.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ ft_browse_sections <- function(...) {
.Defunct(msg = "function removed. see ?`fulltext-defunct`")
}

#' This function is defunct.
#' @export
#' @rdname ft_get_si-defunct
#' @keywords internal
ft_get_si <- function(...) {
.Defunct(msg = "function removed. see package suppdata")
}


#' Defunct functions in fulltext
#'
Expand All @@ -69,6 +77,7 @@ ft_browse_sections <- function(...) {
#' - `cache_clear` was never working anyway, and is now removed
#' - [ft_browse_sections]: no sign that function used, and allows
#' to remove a dependency
#' - [ft_get_si]: moved to package `suppdata`
#'
#' @name fulltext-defunct
NULL
Expand Down
2 changes: 1 addition & 1 deletion R/ft_abstract.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @param scopusopts Scopus options, a named list.
#' @param maopts Microsoft Academic options, a named list.
#' @param crossrefopts Crossref options, a named list.
#' @param ... curl options passed on to [httr::GET()] or [crul::HttpClient]
#' @param ... curl options passed on to `httr::GET()` or [crul::HttpClient]
#' @return An object of class `ft_abstract`
#' @details See **Rate Limits** and **Authentication** in
#' [fulltext-package] for rate limiting and authentication information,
Expand Down
155 changes: 0 additions & 155 deletions R/ft_get_si.R

This file was deleted.

Loading

0 comments on commit 01cd9e0

Please sign in to comment.