-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
234 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: GSODR | ||
Type: Package | ||
Title: Global Surface Summary of the Day ('GSOD') Weather Data Client | ||
Version: 3.1.1.9000 | ||
Version: 3.1.2 | ||
Authors@R: c(person("Adam H.", "Sparks", role = c("aut", "cre"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0002-0061-8359")), | ||
|
@@ -31,7 +31,7 @@ Authors@R: c(person("Adam H.", "Sparks", role = c("aut", "cre"), | |
person("Tyler", "Widdison", role = "ctb", | ||
email = "[email protected]", comment = "Reported bug where | ||
`nearest_stations()` did not return stations in order of nearest to | ||
farthest.")) | ||
farthest")) | ||
URL: https://docs.ropensci.org/GSODR/ | ||
BugReports: https://github.com/ropensci/GSODR/issues | ||
Description: Provides automated downloading, parsing, cleaning, unit conversion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
test_that( | ||
".download_files properly works, subsetting for country and | ||
agroclimatology works", | ||
{ | ||
skip_on_cran() | ||
do.call(file.remove, list(list.files( | ||
tempdir(), | ||
pattern = ".csv$", | ||
full.names = TRUE | ||
))) | ||
years <- 1982 | ||
agroclimatology <- TRUE | ||
country <- "RP" | ||
station <- NULL | ||
|
||
load(system.file("extdata", "isd_history.rda", package = "GSODR")) | ||
setkey(isd_history, "STNID") | ||
stations <- isd_history | ||
|
||
load(system.file("extdata", "isd_history.rda", | ||
package = "GSODR")) | ||
|
||
GSOD_list <- .download_files(station, | ||
years) | ||
|
||
agro_list <- .agroclimatology_list(GSOD_list, | ||
stations, | ||
years) | ||
expect_length(agro_list, 7480) | ||
|
||
RP_list <- .subset_country_list(country, | ||
GSOD_list, | ||
stations, | ||
years) | ||
expect_length(RP_list, 54) | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.