-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated tests to work with new example data and ebirdst 3.2022.0 (#145)
Update tests for BirdFlowModels v 0.0.2.9002 and package new ebirdst Updated tests to work with new amewoo model in BirdFlowModels Changes to pass tests with ebirdst 3.2022.0 * Added ebird/ebirdst to remotes (to install dev version) Revert this after changes in ebirdst 47bbdfc87 are on CRAN * Add skip_if_unsupported_ebirdst_version() to preprocess species tests * Add copy of ebirdst_weeks to BirdFlowR as internal data
- Loading branch information
1 parent
715cf88
commit 43beefa
Showing
24 changed files
with
216 additions
and
116 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 |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
^man/figures/BirdFlowR_transparent.png | ||
^man/figures/BirdFlowR_logo.R | ||
^\.lintr | ||
^data-raw$ |
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
Binary file not shown.
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,42 @@ | ||
# This adds ebirdst_weeks as an internal dataset to the BirdFlowR package | ||
# so that it no longer needs to pull it from ebirdst. | ||
# | ||
# Note: Internal data is stored in R/sysdata.rda and must all be created in | ||
# a single call. | ||
# | ||
# ebirdst_weeks is from ebirdst version 2.2021.3. It is added to BirdFlowR | ||
# for use when preprocessing ebirdst 2021 data (with the old ebird package) | ||
# without referencing the copy in that package as doing so - even conditioned | ||
# on version - breaks CRAN checks when checking against newer ebirdst package | ||
# versions that do not have it. | ||
|
||
# ebirdst_weeks.rds added to data-raw with Using ebirdst v 2.2021.3 | ||
# with this: saveRDS(ebirdst::ebirdst_weeks, "data-raw/ebirdst_weeks.rds") | ||
# which never need to run again. | ||
|
||
# Add the data-raw/ebirdst_weeks.rds to R/sysdata.rda | ||
ebirdst_weeks <- readRDS("./data-raw/ebirdst_weeks.rds") | ||
usethis::use_data(ebirdst_weeks, internal = TRUE) | ||
|
||
### ROxygen Comments below copied from ebirdst/R/data.R v 2.2021.3 | ||
### They will not be rendered but kept here for reference. | ||
|
||
#' eBird Status and Trends weeks | ||
#' | ||
#' eBird Status and Trends predictions are made for each of 52 weeks of the | ||
#' year. This data frame provides the boundaries of the weeks. | ||
#' | ||
#' @format A data frame with 52 rows and 5 columns: | ||
#' \describe{ | ||
#' \item{week_number}{Integer week number from 1-52.} | ||
#' \item{date}{Date of the midpoint of the week.} | ||
#' \item{week_midpoint}{Date of the midpoint of the week expressed as a | ||
#' fraction of the year, i.e. a number from 0-1.} | ||
#' \item{week_start}{Date of the start of the week expressed as a fraction of | ||
#' the year, i.e. a number from 0-1.} | ||
#' \item{week_end}{Date of the end of the week expressed as a fraction of the | ||
#' year, i.e. a number from 0-1.} | ||
#' } | ||
"ebirdst_weeks" | ||
|
||
|
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.