Skip to content

Commit

Permalink
using unzip instead of untar
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeck88 committed Jan 31, 2022
1 parent 4a84795 commit e03c427
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ importFrom(plyr,rbind.fill)
importFrom(readr,read_file)
importFrom(utils,capture.output)
importFrom(utils,read.csv)
importFrom(utils,untar)
importFrom(utils,unzip)
4 changes: 2 additions & 2 deletions R/ppo_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#' @keywords data download plant phenology
#' @importFrom plyr rbind.fill
#' @importFrom utils read.csv
#' @importFrom utils untar
#' @importFrom utils unzip
#' @importFrom httr GET
#' @importFrom httr content
#' @importFrom readr read_file
Expand Down Expand Up @@ -199,7 +199,7 @@ ppo_data <- function(

# save file to disk
writeBin(bin, tf)
untar(tf,exdir="./ppo_download")
unzip(tf,exdir="./ppo_download")

# data.csv contains all data as comma separated values
data <- read.csv( 'ppo_download/data.csv',header=TRUE)
Expand Down

0 comments on commit e03c427

Please sign in to comment.