Skip to content

Commit

Permalink
Replace pattern call on line 292
Browse files Browse the repository at this point in the history
Replace: `utils::glob2rx`

with: `pattern='^.*\\.gz$’`

Suggested by jefferyhanson
  • Loading branch information
adamhsparks committed Oct 22, 2016
1 parent f8ae2dc commit 5c622af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_GSOD.R
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ get_GSOD <- function(years = NULL, station = NULL, country = NULL, dsn = "",
message("\nFinished downloading file.
\nParsing the indivdual station files now.\n")
GSOD_list <- list.files(paste0(td, "/", yr, "/"),
pattern = utils::glob2rx("*.gz"),
pattern = "^.*\\.gz$",
full.names = FALSE)

# If agroclimatology == TRUE, subset list of stations to clean -----------
Expand Down

0 comments on commit 5c622af

Please sign in to comment.