diff --git a/CRAN-RELEASE b/CRAN-RELEASE index ad5feef..c8019de 100644 --- a/CRAN-RELEASE +++ b/CRAN-RELEASE @@ -1,2 +1,2 @@ -This package was submitted to CRAN on 2020-06-25. -Once it is accepted, delete this file and tag the release (commit e11af077e1). +This package was submitted to CRAN on 2020-07-09. +Once it is accepted, delete this file and tag the release (commit 042d9a2d32). diff --git a/DESCRIPTION b/DESCRIPTION index 02d8cbc..f41ba40 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: tidytuesdayR Type: Package Title: Access the Weekly 'TidyTuesday' Project Dataset -Version: 1.0.1 +Version: 1.0.1.9000 Authors@R: c( person( diff --git a/NEWS.md b/NEWS.md index 2b6a47e..ec61288 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,5 @@ +# tidytuesdayR (development version) + # tidytuesdayR 1.0.1 * [feature] Provide a template Rmd for users, populated with date and proper `tt_load` call diff --git a/R/github_api.R b/R/github_api.R index 48ddd49..6a9c733 100644 --- a/R/github_api.R +++ b/R/github_api.R @@ -492,7 +492,7 @@ check_connectivity <- function(rerun = FALSE){ #if internet connection is not set or is false, lets try again if(!getOption("tidytuesdayR.tt_testing", FALSE)){ if(is.na(internet_connection) | !internet_connection | rerun){ - res <- try(GET("https:/api.github.com"), silent = TRUE) + res <- try(GET("https://api.github.com"), silent = TRUE) if(inherits(res,"try-error")){ options("tidytuesdayR.tt_internet_connectivity" = FALSE) }else{ diff --git a/R/tt_download.R b/R/tt_download.R index d479913..5c18d98 100644 --- a/R/tt_download.R +++ b/R/tt_download.R @@ -2,8 +2,7 @@ #' #' Download all or specific files identified in the tt dataset #' -#' @param tt string representation of the date of data to pull, in YYYY-MM-dd -#' format, or just numeric entry for year +#' @param tt a `tt` object, output from \code{\link{tt_load_gh}} #' @param files List the file names to download. Default to asking. #' @param ... pass methods to the parsing functions. These will be passed to #' ALL files, so be careful. diff --git a/R/tt_download_file.R b/R/tt_download_file.R index 12b9ade..c9dd3c0 100644 --- a/R/tt_download_file.R +++ b/R/tt_download_file.R @@ -80,7 +80,7 @@ tt_download_file.character <- auth = auth ) - tt_parse_blob(blob, file_info = file_info[file_info$data_file == x,]) + tt_parse_blob(blob, file_info = file_info[file_info$data_file == x,], ...) } else { stop(paste0( diff --git a/man/tt_download.Rd b/man/tt_download.Rd index 02dbefc..d48bc74 100644 --- a/man/tt_download.Rd +++ b/man/tt_download.Rd @@ -9,8 +9,7 @@ Download all or specific files identified in the tt dataset} tt_download(tt, files = c("All"), ..., branch = "master", auth = github_pat()) } \arguments{ -\item{tt}{string representation of the date of data to pull, in YYYY-MM-dd -format, or just numeric entry for year} +\item{tt}{a `tt` object, output from \code{\link{tt_load_gh}}} \item{files}{List the file names to download. Default to asking.}