Skip to content
Permalink
Browse files

Remove cachedDownload

  • Loading branch information...
nealrichardson committed Oct 14, 2017
1 parent 820864d commit 10506466ef70ef9979341d8a2efccfee98ba310b
Showing with 8 additions and 132 deletions.
  1. +1 −1 Makefile
  2. +0 −2 NAMESPACE
  3. +4 −0 NEWS.md
  4. +0 −54 R/download.R
  5. +1 −1 R/http-verbs.R
  6. +1 −1 man/cached-http-verbs.Rd
  7. +0 −29 man/cachedDownload.Rd
  8. +1 −1 tests/testthat/test-cache.R
  9. +0 −43 tests/testthat/test-download.R
@@ -6,7 +6,7 @@ doc:

test:
R CMD INSTALL --install-tests .
R --slave -e 'library(httptest); setwd(file.path(.libPaths()[1], "httpcache", "tests")); system.time(test_check("httpcache", filter="${file}", reporter=ifelse(nchar("${r}"), "${r}", "summary")))'
export NOT_CRAN=true && R --slave -e 'library(httptest); setwd(file.path(.libPaths()[1], "httpcache", "tests")); system.time(test_check("httpcache", filter="${file}", reporter=ifelse(nchar("${r}"), "${r}", "summary")))'

deps:
R --slave -e 'install.packages(c("httr", "codetools", "testthat", "devtools", "digest"), repo="http://cran.at.r-project.org", lib=ifelse(nchar(Sys.getenv("R_LIB")), Sys.getenv("R_LIB"), .libPaths()[1]))'
@@ -9,7 +9,6 @@ export(buildCacheKey)
export(cacheLogSummary)
export(cacheOff)
export(cacheOn)
export(cachedDownload)
export(cachedPOST)
export(clearCache)
export(dropCache)
@@ -32,7 +31,6 @@ importFrom(httr,GET)
importFrom(httr,PATCH)
importFrom(httr,POST)
importFrom(httr,PUT)
importFrom(utils,download.file)
importFrom(utils,head)
importFrom(utils,read.delim)
importFrom(utils,tail)
@@ -1,3 +1,7 @@
## httpcache 1.1.0

* Remove `cachedDownload`. Use `GET(url, config=write_disk(destfile))` instead, which caches normally.

### httpcache 1.0.2
* Minor adjustment to a validation function's error message format to adapt to changes in R's development version.

This file was deleted.

@@ -24,7 +24,7 @@
#' @importFrom digest digest
#' @aliases GET PUT POST PATCH DELETE
#' @name cached-http-verbs
#' @seealso [dropCache()] [cachedPOST()] [cachedDownload()]
#' @seealso [dropCache()] [cachedPOST()]
#' @export
GET <- function (url, ...) {
validateURL(url)

Some generated files are not rendered by default. Learn more.

This file was deleted.

@@ -156,7 +156,7 @@ public({
"Invalid URL: c(1, 1, 1, 1, 1)",
fixed=TRUE)
setClass("TestS4Obj", contains="environment")
expect_error(cachedDownload(new("TestS4Obj")),
expect_error(GET(new("TestS4Obj")),
'Invalid URL.*TestS4Obj')
})
})

This file was deleted.

0 comments on commit 1050646

Please sign in to comment.
You can’t perform that action at this time.