generated from JGCRI/rtemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the CITATION location and update test_coverage to download test data
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 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
File renamed without changes.
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,18 @@ | ||
|
||
|
||
|
||
download_test_data <- function() { | ||
|
||
# download test data | ||
output_dir_i <- file.path(getwd(), 'output') | ||
|
||
data_dir_i <- gaea::get_example_data( | ||
download_url = 'https://zenodo.org/records/13179630/files/weighted_climate.zip?download=1', | ||
data_dir = output_dir_i) | ||
|
||
} | ||
|
||
# Run the function if this script is being sourced | ||
if (!interactive()) { | ||
download_test_data() | ||
} |