aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-10-31 02:50:16 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-10-31 02:50:16 +0100
commit669447c2a4581a4c8dba18ab40ba6938a42b8267 (patch)
tree48efe2f704da20a62b4070e869e813567f272d26
parent3a628efb59b80c881a1bbea3b2582003a6ddbfa9 (diff)
Comment out example code that fails in pkgdown
-rw-r--r--R/lrtest.mkinfit.R7
-rw-r--r--docs/reference/lrtest.mkinfit.html7
-rw-r--r--man/lrtest.mkinfit.Rd7
3 files changed, 16 insertions, 5 deletions
diff --git a/R/lrtest.mkinfit.R b/R/lrtest.mkinfit.R
index 9c0a9039..60b6c46a 100644
--- a/R/lrtest.mkinfit.R
+++ b/R/lrtest.mkinfit.R
@@ -30,8 +30,11 @@ lmtest::lrtest
#' dfop_fit <- mkinfit("DFOP", test_data, quiet = TRUE)
#' lrtest(dfop_fit, sfo_fit)
#' lrtest(sfo_fit, dfop_fit)
-#' lrtest(dfop_fit, error_model = "tc")
-#' lrtest(dfop_fit, fixed_parms = c(k2 = 0))
+#'
+#' # The following two examples are commented out as they fail during
+#' # generation of the static help pages by pkgdown
+#' # lrtest(dfop_fit, error_model = "tc")
+#' # lrtest(dfop_fit, fixed_parms = c(k2 = 0))
#' }
#' @export
lrtest.mkinfit <- function(object, object_2 = NULL, ...) {
diff --git a/docs/reference/lrtest.mkinfit.html b/docs/reference/lrtest.mkinfit.html
index dd47d91d..fae471fc 100644
--- a/docs/reference/lrtest.mkinfit.html
+++ b/docs/reference/lrtest.mkinfit.html
@@ -195,7 +195,12 @@ lower number of fitted parameters (null hypothesis).</p>
#&gt; 1 5 -42.453
#&gt; 2 3 -63.954 -2 43.002 4.594e-10 ***
#&gt; ---
-#&gt; Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1</div><div class='input'><span class='fu'><a href='https://rdrr.io/pkg/lmtest/man/lrtest.html'>lrtest</a></span>(<span class='no'>dfop_fit</span>, <span class='kw'>error_model</span> <span class='kw'>=</span> <span class='st'>"tc"</span>)</div><div class='output co'>#&gt; <span class='error'>Error in mkinfit(mkinmod = "DFOP", observed = test_data, quiet = TRUE, error_model = "tc", parms.ini = c(k1 = 0.359673923258109, k2 = 0.0219997339436148, g = 0.692423284341522), state.ini = c(parent = 103.83323992643)): Objekt 'test_data' nicht gefunden</span></div><div class='input'><span class='fu'><a href='https://rdrr.io/pkg/lmtest/man/lrtest.html'>lrtest</a></span>(<span class='no'>dfop_fit</span>, <span class='kw'>fixed_parms</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='kw'>k2</span> <span class='kw'>=</span> <span class='fl'>0</span>))</div><div class='output co'>#&gt; <span class='error'>Error in mkinfit(mkinmod = "DFOP", observed = test_data, quiet = TRUE, fixed_parms = ..1, parms.ini = c(k1 = 0.359673923258109, k2 = 0.0219997339436148, g = 0.692423284341522), state.ini = c(parent = 103.83323992643)): Objekt 'test_data' nicht gefunden</span></div><div class='input'># }
+#&gt; Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1</div><div class='input'>
+# The following two examples are commented out as they fail during
+# generation of the static help pages by pkgdown
+# lrtest(dfop_fit, error_model = "tc")
+# lrtest(dfop_fit, fixed_parms = c(k2 = 0))
+# }
</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
diff --git a/man/lrtest.mkinfit.Rd b/man/lrtest.mkinfit.Rd
index b38732b4..c07d9868 100644
--- a/man/lrtest.mkinfit.Rd
+++ b/man/lrtest.mkinfit.Rd
@@ -37,7 +37,10 @@ sfo_fit <- mkinfit("SFO", test_data, quiet = TRUE)
dfop_fit <- mkinfit("DFOP", test_data, quiet = TRUE)
lrtest(dfop_fit, sfo_fit)
lrtest(sfo_fit, dfop_fit)
-lrtest(dfop_fit, error_model = "tc")
-lrtest(dfop_fit, fixed_parms = c(k2 = 0))
+
+# The following two examples are commented out as they fail during
+# generation of the static help pages by pkgdown
+# lrtest(dfop_fit, error_model = "tc")
+# lrtest(dfop_fit, fixed_parms = c(k2 = 0))
}
}

Contact - Imprint