MyNixOS website logo
Description

Bayesian Inference of TKTD Models.

Advanced methods for a valuable quantitative environmental risk assessment using Bayesian inference of survival Data with toxicokinetics toxicodynamics (TKTD) models. Among others, it facilitates Bayesian inference of the general unified threshold model of survival (GUTS). See models description in Jager et al. (2011) <doi:10.1021/es103092a> and implementation using Bayesian inference in Baudrot and Charles (2019) <doi:10.1038/s41598-019-47698-0>.

morseTKTD

Advanced methods for a valuable quantitative environmental risk assessment using Bayesian inference of Survival TKTD models (like the Generalized Unified Threshold model of Survival (GUTS)).

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. 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("../morseTKTD_0.1.0.tar.gz")

See the CRAN status of your sumbmission:

Install from gitlab repository

library('remotes')
remotes::install_gitlab("mosaic-software/morsetktd", host = "gitlab.in2p3.fr")

Build the manual and vignettes

library('devtools')
devtools::document(roclets = c('rd', 'collate', 'namespace'))
devtools::build_manual()
devtools::build_vignettes()

building the package

Note add to .buildignore

# remove files .rds in fixtures
rds_files <- list.files(path = "tests/testthat/fixtures", pattern = "\.rds$", full.names = TRUE)
use_build_ignore(rds_files, escape = TRUE)
library(devtools)
devtools::build()

Add dependencies

usethis::use_package("ggplot2")

Coverage

From R session

library(covr)
cov <- package_coverage("morseTKTD")

Style of process

The succession of steps

  1. data: load the data set.
  2. BinaryData, CountData or ContinuousData: make a ModelData object for binary, count and quantitative continuous data, respectively.
  3. The above-mentioned objects inherit of data.frame
  4. plot: plot a ModelData object.
  5. summary: provides a summary of a ModelData object.
  6. doseResponse: return a DoseResponse object.
  7. plot: plot a DoseResponse object.
  8. fit: fit a ModelData object and return a Fit object.
  9. plot: plot a Fit object.
  10. ppc: return a PPC object.
  11. plot: plot a PPC object.

Coding Style

Object: BigCamelCase

class(x) <- append("ObjectCamelCase", class(x))

Methods: small_snake_case

methods_snake_case <- function(object, ...){
  UseMethod("methods_snake_case")
}
methods_snake_case.ObjectCamelCase <- function(...){}

Function (no methods - not linked to object): smallCamelCase

smallCamelCase <- function(...){}
Metadata

Version

0.1.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows