diff options
| -rw-r--r-- | DESCRIPTION | 2 | ||||
| -rw-r--r-- | R/mkin_wide_to_long.R | 3 | ||||
| -rw-r--r-- | R/mkinerrmin.R | 3 | ||||
| -rw-r--r-- | R/mkinfit.R | 2 | ||||
| -rw-r--r-- | R/mkinresplot.R | 2 | ||||
| -rw-r--r-- | R/plot.mkinfit.R | 3 | 
6 files changed, 9 insertions, 6 deletions
| diff --git a/DESCRIPTION b/DESCRIPTION index 808458cb..c9f47229 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: mkin  Type: Package  Title: Routines for fitting kinetic models with one or more state    variables to chemical degradation data -Version: 0.9-13 +Version: 0.9-14  Date: 2013-02-18  Author: Johannes Ranke, Katrin Lindenberger, René Lehmann  Maintainer: Johannes Ranke <jranke@uni-bremen.de> diff --git a/R/mkin_wide_to_long.R b/R/mkin_wide_to_long.R index 8e4ec604..826aee2d 100644 --- a/R/mkin_wide_to_long.R +++ b/R/mkin_wide_to_long.R @@ -17,7 +17,8 @@  # You should have received a copy of the GNU General Public License along with
  # this program. If not, see <http://www.gnu.org/licenses/>
 -utils::globalVariables(c("name", "value"))
 +if(getRversion() >= '2.15.1') utils::globalVariables(c("name", "value"))
 +
  mkin_wide_to_long <- function(wide_data, time = "t")
  {
    colnames <- names(wide_data)
 diff --git a/R/mkinerrmin.R b/R/mkinerrmin.R index 8b1e9b2e..eb9d49c1 100644 --- a/R/mkinerrmin.R +++ b/R/mkinerrmin.R @@ -17,7 +17,8 @@  # You should have received a copy of the GNU General Public License along with
  # this program. If not, see <http://www.gnu.org/licenses/>
 -utils::globalVariables(c("name"))
 +if(getRversion() >= '2.15.1') utils::globalVariables(c("name"))
 +
  mkinerrmin <- function(fit, alpha = 0.05)
  {
    parms.optim <- fit$par
 diff --git a/R/mkinfit.R b/R/mkinfit.R index 3ca38990..1061165e 100644 --- a/R/mkinfit.R +++ b/R/mkinfit.R @@ -20,7 +20,7 @@  # You should have received a copy of the GNU General Public License along with
  # this program. If not, see <http://www.gnu.org/licenses/>
 -utils::globalVariables(c("name", "value"))
 +if(getRversion() >= '2.15.1') utils::globalVariables(c("name", "value"))
  mkinfit <- function(mkinmod, observed,
    parms.ini = "auto",
 diff --git a/R/mkinresplot.R b/R/mkinresplot.R index f213d8a7..524ba788 100644 --- a/R/mkinresplot.R +++ b/R/mkinresplot.R @@ -17,7 +17,7 @@  # You should have received a copy of the GNU General Public License along with
  # this program. If not, see <http://www.gnu.org/licenses/>
 -utils::globalVariables(c("variable", "residual"))
 +if(getRversion() >= '2.15.1') utils::globalVariables(c("variable", "residual"))
  mkinresplot <- function (object, obs_vars = vector(), 
    xlab = "Time", ylab = "Residual",
 diff --git a/R/plot.mkinfit.R b/R/plot.mkinfit.R index 59ef861e..41b4cb33 100644 --- a/R/plot.mkinfit.R +++ b/R/plot.mkinfit.R @@ -20,7 +20,8 @@  # You should have received a copy of the GNU General Public License along with  # this program. If not, see <http://www.gnu.org/licenses/> -utils::globalVariables(c("type", "variable", "observed")) +if(getRversion() >= '2.15.1') utils::globalVariables(c("type", "variable", "observed")) +  plot.mkinfit <- function(x, fit = x,    xlab = "Time", ylab = "Observed",    xlim = range(fit$data$time), ylim = c(0, max(fit$data$observed, na.rm = TRUE)), | 
