diff --git a/DESCRIPTION b/DESCRIPTION index 8d47105..6e02e0f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -10,8 +10,9 @@ License: See LICENSE.txt Encoding: UTF-8 LazyData: true Imports: - xml2 (>= 1.3.2), + xml2 (>= 1.3.8), nmecr (>= 1.0.17), + rnoaa (>= 1.4.0), anytime RoxygenNote: 7.1.0 Suggests: diff --git a/README.md b/README.md index 12ae01e..7416b8e 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,19 @@ library(bsyncr) # example on using. ``` +## Testing + +Tests are automatically run on GitHub. To run locally, make sure to have R installed along with various dev packages. + +```bash +Rscript setup_environment.R +Rscript -e "testthat::test_dir('tests')" +``` + ## Releasing new version - Create a branch with the prepared release change log. +- Make sure the rnoaa and nmecr versions in `setup_environment.R` and ` are correct. - Update version in bsync.RProj and DESCRIPTION to the next correct semantic version - Make sure the DESCRIPTION has the correct version of the dependencies - For testing purposes, make sure the versions of NMECR and RNOAA are correct in the `setup_environment.R` script diff --git a/setup_environment.R b/setup_environment.R index 9c76b86..53000d8 100644 --- a/setup_environment.R +++ b/setup_environment.R @@ -20,7 +20,7 @@ for (pkg in required_packages) { # Install specific versions of GitHub packages cat("Installing GitHub packages...\n") -remotes::install_github("ropensci/rnoaa@v1.3.4", upgrade = "never") +remotes::install_github("ropensci/rnoaa@v1.4.0", upgrade = "never") remotes::install_github("kW-Labs/nmecr@v1.0.17", upgrade = "never") # Populate NOAA stations (required for rnoaa)