Skip to content

Commit

Permalink
moved to https
Browse files Browse the repository at this point in the history
  • Loading branch information
beanumber committed Jul 19, 2017
1 parent 3e5a30e commit 890ba1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/etl_extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ etl_extract.etl_mtcars <- function(obj, ...) {
#' @examples
#' cars <- etl("mtcars")
#' urls <- c("https://raw.githubusercontent.com/beanumber/etl/master/etl.Rproj",
#' "http://www.reddit.com/robots.txt")
#' "https://www.reddit.com/robots.txt")
#' smart_download(cars, src = urls)
#' # won't download again if the files are already there
#' smart_download(cars, src = urls)
Expand Down
2 changes: 1 addition & 1 deletion man/smart_download.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tests/testthat/test-etl.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ test_that("smart_download works", {
cars <- etl("mtcars")
# first download some files
# if (!.Platform$OS.type == "windows") {
urls <- c("https://raw.githubusercontent.com/beanumber/etl/master/etl.Rproj", "http://www.reddit.com/robots.txt")
urls <- c("https://raw.githubusercontent.com/beanumber/etl/master/etl.Rproj",
"https://www.reddit.com/robots.txt")
expect_length(smart_download(cars, src = urls), 2)
# then try to download them again
expect_length(list.files(attr(cars, "raw_dir")), 3)
Expand Down

0 comments on commit 890ba1e

Please sign in to comment.