Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup_environment.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down