Skip to content

Commit

Permalink
Merge pull request #398 from StoXProject/StoXv4.1.0
Browse files Browse the repository at this point in the history
Version 2.1.0, see NEWS.md.
  • Loading branch information
arnejohannesholmin authored Nov 4, 2024
2 parents 2188172 + 09b0d34 commit f4978c6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/check-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- {os: windows-latest, r: 'release', pkgext: '.zip'}
- {os: windows-latest, r: 'oldrel', pkgext: '.zip'}

- {os: ubuntu-latest, r: 'release', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-22.04, r: 'release', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-22.04, r: 'oldrel', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-22.04, r: 'oldrel-1', pkgext: '.tar.gz', rspm: "https://cloud.r-project.org"}

Expand Down Expand Up @@ -146,11 +146,7 @@ jobs:
## 2c. R packages needed for this yaml script (not related to the Rstox package itself):
- name: Install CRANdependencies
run: |
install.packages(c("rcmdcheck", "git2r", "sessioninfo", "knitr", "remotes"))
# Using the latest drat that supports big sur (after inputs from us).
# When the next drat appears on CRAN this can be changed to install from CRAN:
remotes::install_github(repo = 'eddelbuettel/drat', dependencies = FALSE)
install.packages(c("rcmdcheck", "git2r", "sessioninfo", "knitr", "remotes", "drat"))
shell: Rscript {0}


Expand Down
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: RstoxData
Version: 2.0.1-9007
Date: 2024-10-31
Version: 2.1.0
Date: 2024-11-04
Title: Tools to Read and Manipulate Fisheries Data
Authors@R: c(
person(given = "Edvin",
Expand All @@ -24,7 +24,7 @@ Authors@R: c(
role = "aut"),
person(given = "Norwegian Institute of Marine Research",
role = c("cph", "fnd")))
Depends: R (>= 4.0)
Depends: R (>= 4.3)
Description: Set of tools to read and manipulate various data formats for fisheries. Mainly
catered towards scientific trawl survey sampling ('biotic') data, acoustic
trawl data, and commercial fishing catch ('landings') data. Among the
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# RstoxData v2.1.0 (2024-11-04)
* Final release for StoX 4.1.0.


# RstoxData v2.0.1-9006 (2024-10-30)
* Fixed bug in asIntegerAfterRound() used when setting class of ICES data to avoid floating point to integer errors. The bug appeared when the input was character (but convertible to numeric).

Expand Down
14 changes: 8 additions & 6 deletions R/StoxExport.R
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,14 @@ checkAndCreateICESAcousticCSV <- function(ICESAcousticDataOne) {


is_online <- function(site = "https://raw.githubusercontent.com/StoXProject/repo/master/README.md") {
tryCatch({
readLines(site, n = 1)
TRUE
},
warning = function(w) invokeRestart("muffleWarning"),
error = function(e) FALSE)
tryCatch(
{
readLines(site, n = 1)
TRUE
},
warning = function(w) invokeRestart("muffleWarning"),
error = function(e) FALSE
)
}


Expand Down
1 change: 1 addition & 0 deletions data-raw/prepUnits.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ StoxUnits <- rbind(StoxUnits, list("cardinality-N", "cardinality", "N", "individ
StoxUnits <- rbind(StoxUnits, list("cardinality-kN", "cardinality", "kN", "10^3 individuals", "thousand individuals", 1e3))
StoxUnits <- rbind(StoxUnits, list("cardinality-MN", "cardinality", "MN", "10^6 individuals", "million individuals", 1e6))
StoxUnits <- rbind(StoxUnits, list("cardinality-GN", "cardinality", "GN", "10^9 individuals", "billion individuals", 1e9))
StoxUnits <- rbind(StoxUnits, list("cardinality-TN", "cardinality", "TN", "10^12 individuals", "trillion individuals", 1e12))

StoxUnits <- rbind(StoxUnits, list("area_number_density-N/nmi^2", "area_number_density", "N/nmi^2", "individuals/nmi^2", "individuals per square nautical mile", 1))
StoxUnits <- rbind(StoxUnits, list("area_number_density-kN/nmi^2", "area_number_density", "kN/nmi^2", "10^3 individuals/nmi^2", "thousand individuals per square nautical mile", 1e3))
Expand Down
Binary file modified data/StoxUnits.rda
Binary file not shown.

0 comments on commit f4978c6

Please sign in to comment.