aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-02-21 06:56:35 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2015-02-21 06:56:35 +0100
commit42739646dc36ff74d43b638fc2c4f5259496e2b9 (patch)
treec7ecc20cbf6fb85e61f21ab79b1dfc97914ed93a
parentdf733ceeb044e41922930f89be437e2def92e804 (diff)
Avoid NOTES in R CMD check
- Export S3 methods - Avoid using undeclared variable names
-rw-r--r--NAMESPACE3
-rw-r--r--NEWS.md2
-rw-r--r--R/mkinparplot.R2
3 files changed, 6 insertions, 1 deletions
diff --git a/NAMESPACE b/NAMESPACE
index dfa9e9bb..4774475e 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -1,5 +1,8 @@
# Export all names
exportPattern(".")
+S3method(plot, mkinfit)
+S3method(summary, mkinfit)
+S3method(print, summary.mkinfit)
# Import all packages listed as Imports or Depends
import(
diff --git a/NEWS.md b/NEWS.md
index c8284175..1caaa148 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -4,6 +4,8 @@
- `mkinparplot()`: Avoid warnings that occurred when not all confidence intervals were available in the summary of the fit
- `print.summary.mkinfit()`: Fix printing the summary for the case that the number of iterations is not available
+- NAMESPACE: export S3 methods plot.mkinfit, summary.mkinfit and print.summary.mkinfit to satisfy R CMD check on R-devel
+- `mkinparplot()`: Avoid warning in R CMD check about undeclared global variable `Lower`
## NEW FEATURES
diff --git a/R/mkinparplot.R b/R/mkinparplot.R
index 53354db7..a5e8fb89 100644
--- a/R/mkinparplot.R
+++ b/R/mkinparplot.R
@@ -39,7 +39,7 @@ mkinparplot <- function(object) {
for (type in names(n.plot)) {
parnames <- get(type)
values <- bpar[parnames]
- values_with_confints <- data.frame(t(subset(data.frame(t(values)), !is.na(Lower))))
+ values_with_confints <- data.frame(t(subset(data.frame(t(values)), !is.na("Lower"))))
xlim = switch(type,
state.optim = range(c(0, unlist(values)),
na.rm = TRUE, finite = TRUE),

Contact - Imprint