Skip to content

Commit 537dbce

Browse files
authored
Merge pull request #244 from ices-tools-dev/dev
Fix discovered bugs after 2025 data call is submitted
2 parents e8e058a + 419c804 commit 537dbce

125 files changed

Lines changed: 1035 additions & 5106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
^travis.yml$
99
^FishNCo$
1010
^\.github$
11+
^\.vscode$
1112
^.DS_Store$
1213
^docs$
1314
^doc$
1415
^Meta$
1516
package_overview.Rmd
1617
^.pptx$
18+
^_pkgdown\.yml$
19+
^pkgdown$

.github/workflows/pkgdown.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
41+
shell: Rscript {0}
42+
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/github-pages-deploy-action@v4.5.0
46+
with:
47+
clean: false
48+
branch: gh-pages
49+
folder: docs

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,11 @@ FishNCo/testData/RegionalTestData/*
4747

4848
/doc/
4949
/Meta/
50+
<<<<<<< Updated upstream
51+
.vscode/
52+
docs
53+
=======
54+
55+
# Data to develop fun
56+
/NLdata/
57+
>>>>>>> Stashed changes

DESCRIPTION

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: RDBEScore
22
Type: Package
33
Title: Functions for the ICES Regional Database and Estimation System (RDBES)
4-
Version: 0.3.3
4+
Version: 0.3.4
55
Author: c(
66
person(given = "David",
77
family = "Currie",
@@ -106,8 +106,7 @@ Maintainer: Colin Millar <colin.millar@ices.dk>
106106
Description: The RDBEScore package provides functions to import and work with
107107
fisheries data downloaded from the ICES RDBES database. It also contains
108108
functions to perform estimation analysis using the resulting objects.
109-
URL: https://github.com/ices-tools-dev/RDBEScore,
110-
https://rdbes.ices.dk
109+
URL: https://github.com/ices-tools-dev/RDBEScore, https://rdbes.ices.dk, https://ices-tools-dev.github.io/RDBEScore/
111110
License: GPL-3 + file LICENSE
112111
Encoding: UTF-8
113112
LazyData: true

NEWS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# RDBEScore 0.3.4
2+
3+
- Defaults: `createRDBESDataObject()` now runs validation by default
4+
- Estimation object: added `incDesignVariables` to `createRDBESEstObject()` to optionally drop design variables; convert character columns to factors to reduce size.
5+
- SA sub-sampling: replaced recursive logic with a self-join + lookup (`prepareSubSampleLevelLookup`), with warnings for missing or non‑unique matches.
6+
- Memory: added frequent `gc()` calls across estimation/join steps for large data.
7+
- Joins: improved field selection for hierarchy 7 in `procRDBESEstObjUppHier()`; clarified logic for selecting `VDid` fields.
8+
- Docs/CI: added pkgdown GitHub Actions workflow; improved function docs (params/returns); updated `.Rbuildignore` and package URLs.
9+
- Vignettes: updated estimation workflow and sub-sampling sections; added memory tips, minimal examples, and brief benchmarking notes.
10+
- Performance: `filterRDBESDataObject()` now uses `data.table` for faster filtering.
11+
112
# RDBEScore 0.3.3
213

314
* Update to work with with the 2025 RDBES data call format

R/createRDBESDataObject.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#' @param verbose (Optional) Set to TRUE if you want informative text printed
5858
#' out, or FALSE if you don't. The default is FALSE.
5959
#' @param ... parameters passed to validateRDBESDataObject
60-
#' if input is list of data frames e.g.`strict=FALSE`
60+
#' e.g.`strict=FALSE`
6161
#' @importFrom utils file_test
6262
#'
6363
#' @return A RDBESDataObject
@@ -106,7 +106,7 @@ createRDBESDataObject <- function(input = NULL,
106106

107107
if(import.type == "csv") output <- importRDBESDataCSV(rdbesExtractPath = input,
108108
listOfFileNames = listOfFileNames,
109-
castToCorrectDataTypes = castToCorrectDataTypes)
109+
castToCorrectDataTypes = castToCorrectDataTypes, ...)
110110

111111

112112
if(import.type == "list.of.dfs" || import.type == "list.of.dts") {
@@ -121,5 +121,6 @@ createRDBESDataObject <- function(input = NULL,
121121
output <- newRDBESDataObject()
122122
}
123123

124+
124125
return(output)
125126
}

0 commit comments

Comments
 (0)