diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2015-02-21 06:56:35 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2015-02-21 06:56:35 +0100 |
commit | 42739646dc36ff74d43b638fc2c4f5259496e2b9 (patch) | |
tree | c7ecc20cbf6fb85e61f21ab79b1dfc97914ed93a | |
parent | df733ceeb044e41922930f89be437e2def92e804 (diff) |
Avoid NOTES in R CMD check
- Export S3 methods
- Avoid using undeclared variable names
-rw-r--r-- | NAMESPACE | 3 | ||||
-rw-r--r-- | NEWS.md | 2 | ||||
-rw-r--r-- | R/mkinparplot.R | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -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( @@ -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), |