Skip to content

Commit

Permalink
Don't export method for internal class
Browse files Browse the repository at this point in the history
Fixes r-lib#395
  • Loading branch information
hadley authored and jiwalker-usgs committed Jul 24, 2017
1 parent 5651c68 commit c1a9e9d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Expand Up @@ -12,7 +12,6 @@ S3method(headers,response)
S3method(http_error,character)
S3method(http_error,integer)
S3method(http_error,response)
S3method(length,path)
S3method(print,cache_info)
S3method(print,handle)
S3method(print,oauth_app)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
@@ -1,5 +1,7 @@
# httr 1.2.1.9000

* Don't export `length()` method for internal `path` class (#395)

* New oauth cache files are always added to `.gitignore` and, if it exists, `.Rbuildignore`. Specifically, this now happens when option `httr_oauth_cache = TRUE` or user specifies cache file name explicitly. (@jennybc #436)

* New functions `set_callback()` and `get_callback()` set and query
Expand Down
1 change: 0 additions & 1 deletion R/write-function.R
Expand Up @@ -85,6 +85,5 @@ request_fetch.write_stream <- function(x, url, handle) {
}

path <- function(x) structure(x, class = "path")
#' @export
length.path <- function(x) file.info(x)$size
is.path <- function(x) inherits(x, "path")

0 comments on commit c1a9e9d

Please sign in to comment.