diff options
| -rw-r--r-- | DESCRIPTION | 2 | ||||
| -rw-r--r-- | NAMESPACE | 1 | ||||
| -rw-r--r-- | NEWS.md | 6 | ||||
| -rw-r--r-- | R/mkinds.R | 2 | ||||
| -rw-r--r-- | inst/examples/mkinds.R | 1 | ||||
| -rw-r--r-- | man/mkinds.Rd | 34 | ||||
| -rw-r--r-- | man/print.mkinds.Rd | 19 | 
7 files changed, 61 insertions, 4 deletions
diff --git a/DESCRIPTION b/DESCRIPTION index 8aba93d1..8809b02d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -18,7 +18,7 @@ Description: Calculation routines based on the FOCUS Kinetics Report (2006).    Please note that no warranty is implied for correctness of results or fitness    for a particular purpose.  Depends: minpack.lm, rootSolve, inline, parallel -Imports: stats, graphics, methods, FME, deSolve +Imports: stats, graphics, methods, FME, deSolve, R6  Suggests: knitr, testthat, microbenchmark  License: GPL  LazyLoad: yes @@ -18,3 +18,4 @@ import(  )  importFrom(deSolve, ode)  importFrom(methods, signature) +importFrom(R6, R6Class) @@ -4,12 +4,14 @@  ### Minor changes +- Add an R6 class `mkinds` representing datasets with a printing method + +- Add a printing method for mkinmod objects +  - Make it possible to specify arbitrary strings as names for the compounds in `mkinmod`, and show them in the plot  - Use an index.r file to group help topics in static documentation -- Add a printing method for mkinmod objects -  ## mkin 0.9-40 (2015-07-21)  ### Bug fixes @@ -30,7 +30,7 @@  #' @field replicates The number of replicates  #' @field data A dataframe with at least the columns name, time and value  #'   in order to be compatible with mkinfit -#' @examples inst/examples/mkinds.R +#' @example inst/examples/mkinds.R  mkinds <- R6Class("mkinds",     public = list(      title = NULL, diff --git a/inst/examples/mkinds.R b/inst/examples/mkinds.R new file mode 100644 index 00000000..6c5d2cfc --- /dev/null +++ b/inst/examples/mkinds.R @@ -0,0 +1 @@ +mds <- mkinds$new("FOCUS A", FOCUS_2006_A) diff --git a/man/mkinds.Rd b/man/mkinds.Rd new file mode 100644 index 00000000..239ab328 --- /dev/null +++ b/man/mkinds.Rd @@ -0,0 +1,34 @@ +\docType{class} +\name{mkinds} +\alias{mkinds} +\title{A dataset class for mkin} +\format{An \code{\link{R6Class}} generator object.} +\usage{ +mkinds +} +\description{ +A dataset class for mkin +} +\section{Fields}{ + +\describe{ +\item{\code{title}}{A full title for the dataset} + +\item{\code{sampling}}{times The sampling times} + +\item{\code{time_unit}}{The time unit} + +\item{\code{observed}}{Names of the observed compounds} + +\item{\code{unit}}{The unit of the observations} + +\item{\code{replicates}}{The number of replicates} + +\item{\code{data}}{A dataframe with at least the columns name, time and value +in order to be compatible with mkinfit} +}} +\examples{ +mds <- mkinds$new("FOCUS A", FOCUS_2006_A) +} +\keyword{datasets} + diff --git a/man/print.mkinds.Rd b/man/print.mkinds.Rd new file mode 100644 index 00000000..e7acf30d --- /dev/null +++ b/man/print.mkinds.Rd @@ -0,0 +1,19 @@ +\name{print.mkinds} +\alias{print.mkinds} +\title{ +  Print mkinds objects +} +\description{ +  Print mkinds objects. +} +\usage{ +\method{print}{mkinds}(x, ...) +} +\arguments{ +  \item{x}{ +    An \code{\link{mkinds}} object. +  } +  \item{\dots}{ +    Not used. +  } +}  | 
