Bayesian Inference of Binary, Count and Continuous Data in Toxicology.
morseDR
Advanced methods for a valuable quantitative environmental risk assessment using Bayesian inference with several type of ecotoxicological data: 'binary' (e.g., survival, mobility), 'count' (e.g., reproduction) and 'continuous' (e.g., growth rate, length, weight).
Install from CRAN
library(remotes)
remotes::install_gitlab("mosaic-software/morsedr", host = "gitlab.in2p3.fr")
Submission
Before a submission, you can look at prepare-for-cran , which is an open and collaborative list of things you have to check before submitting your package to the CRAN.
Otherwise, check "as-cran"" using the source package:
library(devtools)
# create documentation
devtools::document(roclets = c('rd', 'collate', 'namespace'))
Once the archive is done, check that '.Rbuildignore' was applied properly. Try to have a low size archive (< 2Mb)
Either directly
# build and check the archive
devtools::check()
Or in 2 steps:
# 1. build the package.
devtools::build()
# 2. check the archive.
devtools::check_built("../morseDR_0.1.1.tar.gz")
See the CRAN status of your sumbmission:
- incoming R CRAN packages: Index of /incoming
- incoming dashboard: incoming dashboard
Build the manual
library('devtools')
devtools::document(roclets = c('rd', 'collate', 'namespace'))
devtools::build_manual()
Coverage:
From R session
library(covr)
cov <- package_coverage("morseDR")
Style of process
The succession of steps
data: load the data set.BinaryData,CountDataorContinuousData: make aModelDataobject for binary, count and quantitative continuous data, respectively.- The above-mentioned objects inherit of
data.frame plot: plot aModelDataobject.summary: provides a summary of aModelDataobject.doseResponse: return aDoseResponseobject.plot: plot aDoseResponseobject.fit: fit aModelDataobject and return aFitobject.plot: plot aFitobject.ppc: return aPPCobject.plot: plot aPPCobject.
Coding Style
Object: BigCamelCase
class(x) <- append("ObjectCamelCase", class(x))
Methods: small_snake_case
methods_snake_case.ObjectCamelCase <- function(...){}
Function (no methods - not linked to object): smallCamelCase
smallCamelCase <- function(...){}