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)).
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
::check() devtools
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: - incoming R CRAN packages: Index of /incoming - incoming dashboard: incoming dashboard
library('remotes')
::install_gitlab("mosaic-software/morsetktd", host = "gitlab.in2p3.fr") remotes
library('devtools')
::document(roclets = c('rd', 'collate', 'namespace'))
devtools::build_manual()
devtools::build_vignettes() devtools
# remove files .rds in fixtures
<- list.files(path = "tests/testthat/fixtures", pattern = "\.rds$", full.names = TRUE)
rds_files use_build_ignore(rds_files, escape = TRUE)
library(devtools)
::build() devtools
::use_package("ggplot2") usethis
From R session
library(covr)
<- package_coverage("morseTKTD") cov
data
: load the data set.BinaryData
, CountData
or
ContinuousData
: make a ModelData
object for
binary, count and quantitative continuous data, respectively.data.frame
plot
: plot a ModelData
object.summary
: provides a summary of a ModelData
object.doseResponse
: return a DoseResponse
object.plot
: plot a DoseResponse
object.fit
: fit a ModelData
object and return a
Fit
object.plot
: plot a Fit
object.ppc
: return a PPC
object.plot
: plot a PPC
object.Object: BigCamelCase
class(x) <- append("ObjectCamelCase", class(x))
Methods: small_snake_case
<- function(object, ...){
methods_snake_case UseMethod("methods_snake_case")
}
<- function(...){} methods_snake_case.ObjectCamelCase
Function (no methods - not linked to object):
smallCamelCase
<- function(...){} smallCamelCase