From 46ec7acafbd2fcf569d72e492c2f0d7b240ad85c Mon Sep 17 00:00:00 2001 From: Philippe Massicotte Date: Thu, 19 Nov 2015 16:09:55 +0100 Subject: [PATCH] work on --as-cran notes --- NAMESPACE | 4 ++++ R/eem_read.R | 1 + R/eem_utils.R | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NAMESPACE b/NAMESPACE index 4a7c4ab..3d4f654 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -19,6 +19,10 @@ export(eem_remove_scattering) export(eem_set_wavelengths) import(ggplot2) importFrom(Rcpp,sourceCpp) +importFrom(grDevices,colorRampPalette) +importFrom(stats,na.omit) importFrom(stringr,str_detect) importFrom(tidyr,gather) +importFrom(utils,head) +importFrom(utils,tail) useDynLib(eemR) diff --git a/R/eem_read.R b/R/eem_read.R index 204be02..b07751d 100644 --- a/R/eem_read.R +++ b/R/eem_read.R @@ -21,6 +21,7 @@ #' that EEMs are reshaped so X[1, 1] represents the fluoresence intensity at #' X[min(ex), min(em)]. #' +#' @importFrom stats na.omit #' @export #' @examples #' file <- system.file("extdata/cary/eem/", "sample1.csv", package = "eemR") diff --git a/R/eem_utils.R b/R/eem_utils.R index 0960a20..9673162 100644 --- a/R/eem_utils.R +++ b/R/eem_utils.R @@ -2,6 +2,7 @@ #' #' @param x An object of class \code{eem}. #' @param ... Extra arguments for \code{image.plot}. +#' @importFrom grDevices colorRampPalette #' @export #' @examples #' file <- system.file("extdata/cary/eem/", "sample1.csv", package = "eemR") @@ -57,7 +58,7 @@ plot.eemlist <- function(x, which = 1, ...) { #' @param ... Extra arguments. #' #' @references \url{http://www.sciencedirect.com/science/article/pii/0304420395000623} -#' +#' @importFrom utils head tail #' @export #' @examples #' file <- system.file("extdata/cary/eem/", "sample1.csv", package = "eemR")