RDBEScore
RDBEScore
provides functions to work with the Regional DataBase and Estimation System (RDBES).
It is implemented as an R package and available on GitHub
The most recent production version of the package can be installed from ICES tools (production). Theese are tools that are operational and maintained by the ICES Secretariat.
install.packages("RDBEScore", repos = c("https://ices-tools-prod.r-universe.dev", "https://cloud.r-project.org"))
A more updated version of RDBEScore can be installed from GitHub using the install_github
command from the remotes package:
library(remotes)
install_github("ices-tools-dev/RDBEScore", build_vignettes = TRUE)
For a summary of the package see the following Vignettes:
browseVignettes(package = "RDBEScore")
Regional Database & Estimation System: https://sboxrdbes.ices.dk/
Working Group on Governance of the Regional Database & Estimation System: https://www.ices.dk/community/groups/Pages/WGRDBESGOV.aspx
Working Group on Estimation with the RDBES data model (WGRDBES-EST): https://github.com/ices-tools-dev/RDBEScore/blob/main/WGRDBES-EST/references/WGRDBES-EST%20Resolutions.pdf
see also: https://github.com/ices-tools-dev/RDBEScore/tree/main/WGRDBES-EST/references
RDBEScore (Development)
RDBEScore is developed openly on GitHub.
Feel free to open an issue there if you encounter problems or have suggestions for future versions.
The current development version can be installed using:
library(remotes)
install_github("ices-tools-dev/RDBEScore@dev")
If the installation fails due to R CMD, this alternative option can be used
library(remotes)
install_github("ices-tools-dev/RDBEScore@dev", build = FALSE)
data.table
usageObjects of type data.table
passed as parameters should be copied before modification. As an example:
function zeroIds(sl) {
sl <- data.table::copy(sl)
sl[,SLid:=0]
sl
}
Now invocations of this function on SL tables will not alter the original copy.
For adhering to package styling guides it is advisable to use precommit checks while developing. In order to run lintr and styler (etc) before committing code, follow the instructions at the following address: https://github.com/lorenzwalthert/precommit#installation
bash
pip3 install pre-commit --user
r
install.packages("precommit")
r
library(precommit)
precommit::use_precommit()
Building binary packages can be achieved by running the following commands.
Rscript.exe -e "roxygen2::roxygenize('.', roclets = c('rd', 'collate', 'namespace'))"
Rcmd.exe INSTALL --build --preclean .
Note to replace .
with the relative path of the project if necessary. Also on some operating systems, Rcmd.exe
is called Rcmd
and Rscript.exe
is Rcmd
respectively.
In R-studio there is also a button on the build
- tab: More -> Build Binary Package
that builds the binary package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.