Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
4922547
Update BuildTextBookDataUpload_Pckg_survey_apiclus1_H1.R
nmprista Oct 17, 2025
a12ea79
updated strata name
nmprista Oct 17, 2025
73bd689
Update BuildTextBookDataUpload_All.R
nmprista Oct 17, 2025
0eb32f8
update textBookExamples
nmprista Oct 17, 2025
905a770
Update data.R
nmprista Oct 17, 2025
6fe1393
Merge branch 'dev' into organize-text-book-uploads-#248
nmprista Oct 17, 2025
896c354
Update add2PackageDataWGRDBES-EST_TEST_1.R
nmprista Oct 17, 2025
45142d2
Merge main into dev; keep dev's R/doEstimationRatio.R
rix133 Oct 17, 2025
295d72e
Merge branch 'dev' into organize-text-book-uploads-#248
nmprista Oct 17, 2025
ba12f0f
Update add2PackageDataWGRDBES-EST_TEST_1.R
nmprista Oct 17, 2025
513b1f6
updated data
nmprista Oct 17, 2025
e6ee54e
updates vignettes
nmprista Oct 17, 2025
1e0284b
Merge pull request #254 from ices-tools-dev/organize-text-book-upload…
nmprista Oct 17, 2025
264960c
Rds updated
nmprista Oct 17, 2025
cc1781d
Update ratio est
karolinamg Oct 19, 2025
ec84e74
Upd ratio
karolinamg Oct 20, 2025
23cefd4
changes ratio fun
karolinamg Nov 4, 2025
9b4540f
upd ratio
karolinamg Nov 5, 2025
e47bd5d
update vignettes
rix133 Jan 8, 2026
1f6fc9d
test that empty tabeles are skipped
rix133 Feb 3, 2026
a72a525
skipping empty tables
rix133 Feb 3, 2026
d2fe99d
cahnge ID because this might change when package data changes
rix133 Feb 3, 2026
6d78edb
#255 added mixed country object filtering
rix133 Feb 3, 2026
146d2de
fix gitignore
colinpmillar Feb 11, 2026
c267f6f
add renv stuff
colinpmillar Feb 11, 2026
7dbb087
add colin and ejaz as contributers and run roxygen
colinpmillar Feb 11, 2026
797cb2c
add downloadRDBESDataZip()
colinpmillar Feb 11, 2026
b4674eb
check fixes
colinpmillar Feb 11, 2026
f9af737
Revert "#255 added mixed country object filtering"
rix133 Mar 9, 2026
2b1964e
Revert "skipping empty tables"
rix133 Mar 9, 2026
9030970
#255 fixing for 0 rows tables
rix133 Mar 9, 2026
3626981
Merge pull request #256 from colinpmillar/dev
rix133 Mar 10, 2026
b603dc8
Update doEstimationRatio.R function
karolinamg Mar 10, 2026
d92fbd7
Removed lowerAux, included in the model
karolinamg Mar 10, 2026
7d5033f
added in namespace, pass checks
karolinamg Mar 10, 2026
91a81cc
some todo
karolinamg Mar 10, 2026
7cd6877
2026 march presentation
rix133 Mar 11, 2026
eb73e67
#257 fix obvious issues
rix133 Mar 11, 2026
af377e6
added dev option
rix133 Mar 11, 2026
ea7a0d6
specify function sources
rix133 Mar 11, 2026
7093cae
Update README with development setup and guidelines
rix133 Mar 11, 2026
24dc27d
update todo in ratio est fun
karolinamg Mar 11, 2026
ab5a225
upd todo
karolinamg Mar 11, 2026
d00df7e
#253 updated documentation
rix133 Mar 11, 2026
77a62e0
Merge branch 'dev' of github.com:ices-tools-dev/RDBEScore into dev
rix133 Mar 11, 2026
a282b38
#253 add a test to verify downstream orphans
rix133 Mar 11, 2026
8b163d9
poster draft
rix133 Apr 22, 2026
f3ad0be
poster for ACE
rix133 May 5, 2026
1cc584e
update downloadRDBESDataZip to use icesRDBES package
rix133 May 8, 2026
f82043d
fixes #259
rix133 May 8, 2026
f958ed7
drafting AI #264
rix133 Oct 8, 2026
47a1a2d
Agree on common schedule
rix133 Oct 9, 2026
47474be
replacing all dplyr code to remove the dependency #265
rix133 Oct 9, 2026
397637c
closes #257 leave the download to seperate icesRDBES package
rix133 Oct 9, 2026
b959256
Revise contribution guidelines and AI tool usage
rix133 Oct 12, 2026
7a44388
Fix typos and update AI guidelines in README
rix133 Oct 13, 2026
b2e0f7e
Update README.md
nmprista Oct 13, 2026
79db614
Update NEWS.md for RDBEScore 0.4.0 release
rix133 Oct 13, 2026
35dc252
added long integer allowence #266
rix133 Oct 13, 2026
b5c7d87
Merge branch 'dev' of github.com:ices-tools-dev/RDBEScore into dev
rix133 Oct 13, 2026
abef3b7
update roxygen version
rix133 Oct 13, 2026
0a33042
#266 documentation change
rix133 Oct 13, 2026
f6dfbce
#255 now checks for hierarchy compliance
rix133 Oct 13, 2026
4bbed66
utility function that detects use of non-exported function in examples
nmprista Oct 13, 2026
0f1c5ef
added a 2nd test and documented AI assistance
nmprista Oct 13, 2026
3c4c009
added clean up of tmp dir/package. related to #267
nmprista Oct 13, 2026
be3910a
updated example to exported function #267
nmprista Oct 13, 2026
1407617
updated example to exported function
nmprista Oct 13, 2026
d94f706
updated examples to exported function
nmprista Oct 13, 2026
11a558b
Update README.md
anacfernandes Oct 13, 2026
64cc7fd
updated example to exported function #267
nmprista Oct 13, 2026
17776b9
updated example to exported function and data sets now available #267
nmprista Oct 13, 2026
7cc40d4
updated example to exported function and data sets now available #267
nmprista Oct 13, 2026
10d14b2
updated example to exported function and data sets now available #267
nmprista Oct 13, 2026
d020717
updated example to exported function and data sets now available #267
nmprista Oct 13, 2026
3365003
updated example to exported function #267
nmprista Oct 13, 2026
0e0ef43
updated example to exported function and data sets now available #267
nmprista Oct 13, 2026
1513068
updated example to exported function #267
nmprista Oct 13, 2026
72f2a60
#268 the upper table has the same amount of rows as the request
rix133 Oct 13, 2026
dffb272
added call to data # 267
nmprista Oct 13, 2026
5db5b44
updated example to exported function and data sets now available #267
nmprista Oct 13, 2026
a3df2c5
updated example to exported function and data sets now available #267
nmprista Oct 13, 2026
944592e
updated example to exported/imported functions #267
nmprista Oct 13, 2026
ca858c4
updated examples to data sets now available #267
nmprista Oct 13, 2026
a15cef6
#268 both directions have similar output
rix133 Oct 13, 2026
99379f4
#269 add tests
rix133 Oct 13, 2026
6079db9
#269 complete rewrite and tests
rix133 Oct 13, 2026
0a01255
#267
nmprista Oct 14, 2026
33d2e8f
# 267
nmprista Oct 14, 2026
b81e93d
fixed bug in FOid subset
nmprista Oct 14, 2026
bc054d8
Merge branch 'dev' of https://github.com/ices-tools-dev/RDBEScore int…
nmprista Oct 14, 2026
8a4e325
Merge pull request #270 from ices-tools-dev/issue-267
nmprista Oct 14, 2026
4755682
update name of function
nmprista Oct 14, 2026
a4bd355
set SAtotalWtLive, SAtotalWtMes of dummy rows to NA: was 0
nmprista Oct 14, 2026
1fa66bc
Merge pull request #275 from ices-tools-dev/issue-271
nmprista Oct 14, 2026
a1cb2db
update name of function
nmprista Oct 14, 2026
5035412
Merge branch 'dev' of https://github.com/ices-tools-dev/RDBEScore int…
nmprista Oct 14, 2026
e6cdd94
Update generateZerosUsingSL.R
nmprista Oct 14, 2026
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
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
^data-raw$
Expand All @@ -17,3 +19,5 @@ package_overview.Rmd
^.pptx$
^_pkgdown\.yml$
^pkgdown$
^\.positai$
^\.claude$
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@ FishNCo/testData/RegionalTestData/*
~$*
/doc/
/Meta/
<<<<<<< Updated upstream
.vscode/
docs
=======
# Data to develop fun
/NLdata/
>>>>>>> Stashed changes
package_overview.tex
package_overview.html
package_overview.pptx
package_overview.md

# add renv stuff
/renv/
.Rprofile
renv.lock
.positai
174 changes: 87 additions & 87 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,124 +1,124 @@
Package: RDBEScore
Type: Package
Title: Functions for the ICES Regional Database and Estimation System (RDBES)
Version: 0.3.5
Version: 0.4.0
Author: c(
person(given = "David",
family = "Currie",
role = c("aut"),
person(given = "David",
family = "Currie",
role = c("aut"),
comment = c(ORCID = "0000-0002-3523-6895")),
person(given = "Richard",
family = "Meitern",
role = c("aut"),
email = "richard.meitern@ut.ee",
comment = c(ORCID = "0000-0002-2600-3002")),
person(given = "Nuno",
family = "Prista",
role = c("aut"),
email = "nuno.prista@slu.se",
person(given = "Nuno",
family = "Prista",
role = c("aut"),
email = "nuno.prista@slu.se",
comment = c(ORCID = "0000-0002-5145-7241")),
person(given = "Nicholas",
family = "Carey",
person(given = "Nicholas",
family = "Carey",
role = c("aut"),
email = "nicholas.carey@gov.scot"),
person(given = "Petri",
family = "Sarvamaa",
role = c("aut"),
person(given = "Petri",
family = "Sarvamaa",
role = c("aut"),
email = "Petri.Sarvamaa@luke.fi"),
person(given = "Kirsten",
family = "Birch Håkansson",
role = c("aut"),
person(given = "Kirsten",
family = "Birch Håkansson",
role = c("aut"),
email = "kih@aqua.dtu.dk"),
person(given = "Karolina",
family = "Molla Gazi",
role = c("aut"),
email = "karolina.mollagazi@wur.nl"),
person(given = "Julia",
family = "Wischnewski",
role = c("aut"),
email = "julia.wischnewski@thuenen.de"),
person(given = "Ana Cláudia",
family = "Fernandes",
role = c("aut"),
person(given = "Karolina",
family = "Molla Gazi",
role = c("aut"),
email = "karolina.mollagazi@wur.nl"),
person(given = "Julia",
family = "Wischnewski",
role = c("aut"),
email = "julia.wischnewski@thuenen.de"),
person(given = "Ana Cláudia",
family = "Fernandes",
role = c("aut"),
email = "acfernandes@ipma.pt"),
person(given = "Katarzyna",
family = "Krakówka",
role = c("aut"),
person(given = "Katarzyna",
family = "Krakówka",
role = c("aut"),
email = "kkrakowka@mir.gdynia.pl"),
person(given = "Marta",
family = "Szymańska",
role = c("aut"),
email = "msuska@mir.gdynia.pl"),
person(given = "Nicolas",
family = "Goñi",
role = c("aut"),
email = "nicolas.goni@luke.fi"),
person(given = "Annica",
family = "de Groote",
role = c("ctb"),
email = "annica.isaksson.de.groote@slu.se"),
person(given = "Jonathan",
family = "Ball",
role = c("ctb"),
person(given = "Marta",
family = "Szymańska",
role = c("aut"),
email = "msuska@mir.gdynia.pl"),
person(given = "Nicolas",
family = "Goñi",
role = c("aut"),
email = "nicolas.goni@luke.fi"),
person(given = "Annica",
family = "de Groote",
role = c("ctb"),
email = "annica.isaksson.de.groote@slu.se"),
person(given = "Jonathan",
family = "Ball",
role = c("ctb"),
email = "johnathan.ball@cefas.co.uk"),
person(given = "Jonathan",
family = "Rault",
role = c("ctb"),
person(given = "Jonathan",
family = "Rault",
role = c("ctb"),
email = "Jonathan.Rault@ifremer.fr"),
person(given = "Antti",
family = "Sykkö",
role = c("ctb"),
person(given = "Antti",
family = "Sykkö",
role = c("ctb"),
email = "antti.sykko@luke.fi"),
person(given = "Liz",
family = "Clarke",
role = c("ctb"),
person(given = "Liz",
family = "Clarke",
role = c("ctb"),
email = "Liz.Clarke@gov.scot"),
person(given = "Chun",
family = "Chen",
role = c("ctb"),
person(given = "Chun",
family = "Chen",
role = c("ctb"),
email = "chun.chen@wur.nl"),
person(given = "Hongru",
family = "Zhai",
role = c("ctb"),
person(given = "Hongru",
family = "Zhai",
role = c("ctb"),
email = "hongru.zhai@slu.se"),
person(given = "Eros",
family = "Quesada",
role = c("ctb"),
person(given = "Eros",
family = "Quesada",
role = c("ctb"),
email = "eros.quesada@slu.se"),
person(given = "Jonathan",
family = "Stounberg",
role = c("ctb"),
person(given = "Jonathan",
family = "Stounberg",
role = c("ctb"),
email = "jostou@aqua.dtu.dk"),
person(given = "Ana",
family = "Ribeiro Santos",
role = c("ctb"),
person(given = "Ana",
family = "Ribeiro Santos",
role = c("ctb"),
email = "ana.ribeirosantos@cefas.co.uk"),
person(given = "Jose",
family = "Castro",
role = c("ctb"),
email = "jose.castro@ieo.es"),
person(given = "Jessica",
family = "Craig",
role = c("ctb"),
email = "Jessica.Craig@gov.scot")
)
Maintainer: Colin Millar <colin.millar@ices.dk>
Description: The RDBEScore package provides functions to import and work with
fisheries data downloaded from the ICES RDBES database. It also contains
functions to perform estimation analysis using the resulting objects.
person(given = "Jose",
family = "Castro",
role = c("ctb"),
email = "jose.castro@ieo.es"),
person(given = "Jessica",
family = "Craig",
role = c("ctb"),
email = "Jessica.Craig@gov.scot"),
person(given = "Colin", family = "Millar", role = "ctb"),
person(given = "Ejaz", family = "Muhammad", role = "ctb"))
Maintainer: Richard Meitern <richard.meitern@ut.ee>
Description: The RDBEScore package provides functions to import and work with
fisheries data downloaded from the ICES RDBES database. It also contains
functions to perform estimation analysis using the resulting objects.
URL: https://github.com/ices-tools-dev/RDBEScore, https://rdbes.ices.dk, https://ices-tools-dev.github.io/RDBEScore/
License: GPL-3 + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE)
Suggests:
Suggests:
knitr,
rmarkdown,
testthat
Depends:
Depends:
R (>= 4.1)
Imports:
dplyr (>= 1.1.3),
Imports:
data.table
VignetteBuilder: knitr
Config/roxygen2/version: 8.1.1
19 changes: 12 additions & 7 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export(createRDBESDataObject)
export(createRDBESEstObject)
export(doBVestimCANUM)
export(doEstimationForAllStrata)
export(doEstimationRatio)
export(estim)
export(estimMC)
export(exportEstimationResultsToInterCatchFormat)
Expand All @@ -34,10 +35,14 @@ export(updateSAwithTaxonFromSL)
export(validateRDBESDataObject)
export(validateRDBESEstObject)
import(data.table)
importFrom(stats,formula)
importFrom(stats,na.omit)
importFrom(stats,rnorm)
importFrom(stats,setNames)
importFrom(utils,file_test)
importFrom(utils,packageDescription)
importFrom(utils,tail)
importFrom(stats,
formula,
na.omit,
rnorm,
setNames
)
importFrom(utils,
file_test,
packageDescription,
tail
)
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# RDBEScore 0.4.0
- Breaking: `getLinkedDataFromLevel()` now returns the requested field and target-table columns in both directions, without adding intermediate hierarchy ids (#268). Non-id requested fields are retained when going down the hierarchy. `getLowerTableSubsets()` avoids duplicated requested-field columns.
- Package README updated with AI usage guidelines
- Dependencies: removed `dplyr` from Imports. Joins now use the internal `data.table` helper `joinDT()`, which keeps dplyr's row order, column order and `.x`/`.y` suffixes, so results are unchanged; `filterRDBESEstObject()` and the vignette use base R/`data.table` instead of dplyr.
- Bug fix: addressed [#259](https://github.com/ices-tools-dev/RDBEScore/issues/259) selecting multiple strata with `addCLtoLowerCS()`

# RDBEScore 0.3.5

- Bug fix: addressed [#251](https://github.com/ices-tools-dev/RDBEScore/issues/251).
Expand Down
2 changes: 1 addition & 1 deletion R/addCLtoLowerCS.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ addCLtoLowerCS <- function(rdbes, strataListCS, strataListCL, combineStrata =T,
# Function to subset data.table based on criteria list
subset_dt <- function(dt, criteria) {
for (field in names(criteria)) {
dt <- dt[get(field) == criteria[[field]], ]
dt <- dt[get(field) %in% criteria[[field]], ]
}
return(dt)
}
Expand Down
15 changes: 6 additions & 9 deletions R/combineRDBESDataObjects.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@
#'
#' @examples
#' \dontrun{
#'
#' myH1RawObject <-
#' importRDBESDataCSV(rdbesExtractPath = "tests\\testthat\\h1_v_1_19")
#' myH5RawObject <-
#' importRDBESDataCSV(rdbesExtractPath = "tests\\testthat\\h5_v_1_19")
#'
#' myCombinedRawObject <- combineRDBESDataObjects(RDBESDataObject1=myH1RawObject,
#' RDBESDataObject2=myH5RawObject)
#' }
#' myH1DataObject <- H1Example
#' myH5DataObject <- H5Example
#' myCombinedRawObject <- combineRDBESDataObjects(RDBESDataObject1=myH1DataObject,
#' RDBESDataObject2=myH5DataObject)
#' myCombinedRawObject <- combineRDBESDataObjects(RDBESDataObject1=myH1DataObject,
#' RDBESDataObject2=myH5DataObject, strict=F)} RDBESDataObject2=myH5RawObject)
combineRDBESDataObjects <- function(RDBESDataObject1,
RDBESDataObject2,
verbose = FALSE,
Expand Down
2 changes: 1 addition & 1 deletion R/createDBEPrepObj.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' input <- "WKRDB-EST2/testData/output/DBErawObj/"
#' output <- "WKRDB-EST2/subGroup1/personal/John/PreparedOutputs/"
#'
#' createDBEPrepObj(input = input, output = output)
#' RDBEScore:::createDBEPrepObj(input = input, output = output)
#' }
createDBEPrepObj <- function(input, output) {

Expand Down
Loading
Loading