aboutsummaryrefslogtreecommitdiff
path: root/R/mkinmod.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-03-31 09:24:14 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-03-31 09:24:14 +0200
commitf9e0c46378f090a04fe95c70bb7977a686679895 (patch)
treeaba3d3d816f88020f3c31011d2d78a8528d90eb7 /R/mkinmod.R
parent575fcacaa33076de97f41a79afb37efb97ca82e0 (diff)
Static documentation rebuilt by pkgdown
Diffstat (limited to 'R/mkinmod.R')
-rw-r--r--R/mkinmod.R6
1 files changed, 4 insertions, 2 deletions
diff --git a/R/mkinmod.R b/R/mkinmod.R
index cf618525..cfd40504 100644
--- a/R/mkinmod.R
+++ b/R/mkinmod.R
@@ -33,6 +33,7 @@
#' @param verbose If \code{TRUE}, passed to \code{\link{cfunction}} if
#' applicable to give detailed information about the C function being built.
#' @importFrom methods signature
+#' @importFrom pkgbuild has_compiler
#' @importFrom inline cfunction
#' @return A list of class \code{mkinmod} for use with \code{\link{mkinfit}},
#' containing, among others,
@@ -364,8 +365,9 @@ mkinmod <- function(..., use_of_ff = "min", speclist = NULL, quiet = FALSE, verb
model$coefmat <- m
}#}}}
- # Try to create a function compiled from C code if >1 observed variable {{{
- if (length(obs_vars) > 1) {
+ # Try to create a function compiled from C code there is more than one observed variable {{{
+ # and a compiler is available
+ if (length(obs_vars) > 1 & has_compiler()) {
# Translate the R code for the derivatives to C code
diffs.C <- paste(diffs, collapse = ";\n")

Contact - Imprint