From 7052846df79f0df46909315072a9d6b16972883c Mon Sep 17 00:00:00 2001 From: Karl Broman Date: Sun, 15 May 2016 17:14:31 -0500 Subject: [PATCH] Add some importFrom directives to NAMESPACE - to avoid warnings in R CMD check --- DESCRIPTION | 8 ++++++-- NAMESPACE | 7 ++++++- R/RSkittleBrewer.R | 1 + R/plotSkittles.R | 2 ++ R/plotSmarties.R | 2 ++ man/RSkittleBrewer.Rd | 7 ++++--- man/plotSkittles.Rd | 3 ++- man/plotSmarties.Rd | 3 ++- 8 files changed, 25 insertions(+), 8 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d874b73..5bd2a21 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -5,6 +5,10 @@ Maintainer: Alyssa Frazee License: MIT + file LICENSE Title: fun with R colors VignetteBuilder: knitr -Suggests: knitr -Description: for those times you want to make plots with candy-themed color schemes +Imports: graphics, stats, grDevices +Suggests: + knitr +Description: for those times you want to make plots with candy-themed color + schemes URL: https://github.com/alyssafrazee/RSkittleBrewer +RoxygenNote: 5.0.1 diff --git a/NAMESPACE b/NAMESPACE index ae65776..44c4513 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,5 +1,10 @@ -# Generated by roxygen2 (4.0.0): do not edit by hand +# Generated by roxygen2: do not edit by hand export(RSkittleBrewer) export(plotSkittles) export(plotSmarties) +importFrom(grDevices,rgb) +importFrom(graphics,par) +importFrom(graphics,plot) +importFrom(graphics,points) +importFrom(stats,runif) diff --git a/R/RSkittleBrewer.R b/R/RSkittleBrewer.R index a0dfb75..88e74bc 100644 --- a/R/RSkittleBrewer.R +++ b/R/RSkittleBrewer.R @@ -6,6 +6,7 @@ #' @param flavor Character string for candy-based color palette. #' #' @export +#' @importFrom grDevices rgb #' @return Vector of character strings representing the chosen set of colors. #' #' @examples diff --git a/R/plotSkittles.R b/R/plotSkittles.R index 3c469a4..888fa75 100644 --- a/R/plotSkittles.R +++ b/R/plotSkittles.R @@ -3,6 +3,8 @@ #' Plot illustrating the Skittles and M&M's color palettes #' #' @export +#' @importFrom graphics par plot points +#' @importFrom stats runif #' @return None. #' #' @examples diff --git a/R/plotSmarties.R b/R/plotSmarties.R index 9a37246..76fed8d 100644 --- a/R/plotSmarties.R +++ b/R/plotSmarties.R @@ -3,6 +3,8 @@ #' Plot illustrating the Smarties color palette #' #' @export +#' @importFrom graphics plot points +#' @importFrom stats runif #' @return None. #' #' @examples diff --git a/man/RSkittleBrewer.Rd b/man/RSkittleBrewer.Rd index 89cef75..ed3ffe8 100644 --- a/man/RSkittleBrewer.Rd +++ b/man/RSkittleBrewer.Rd @@ -1,4 +1,5 @@ -% Generated by roxygen2 (4.0.0): do not edit by hand +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/RSkittleBrewer.R \name{RSkittleBrewer} \alias{RSkittleBrewer} \title{Candy-based color palettes} @@ -7,8 +8,7 @@ RSkittleBrewer(flavor = c("original", "tropical", "wildberry", "M&M", "smarties")) } \arguments{ - \item{flavor}{Character string for candy-based color - palette.} +\item{flavor}{Character string for candy-based color palette.} } \value{ Vector of character strings representing the chosen set of colors. @@ -19,6 +19,7 @@ Vectors of colors corresponding to different candies. \examples{ plotSkittles() plotSmarties() + } \seealso{ \code{\link{plotSkittles}}, \code{\link{plotSmarties}} diff --git a/man/plotSkittles.Rd b/man/plotSkittles.Rd index 5f5bc9d..bf9b53e 100644 --- a/man/plotSkittles.Rd +++ b/man/plotSkittles.Rd @@ -1,4 +1,5 @@ -% Generated by roxygen2 (4.0.0): do not edit by hand +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/plotSkittles.R \name{plotSkittles} \alias{plotSkittles} \title{Plot the Skittles color palettes} diff --git a/man/plotSmarties.Rd b/man/plotSmarties.Rd index 999ad11..74e42ba 100644 --- a/man/plotSmarties.Rd +++ b/man/plotSmarties.Rd @@ -1,4 +1,5 @@ -% Generated by roxygen2 (4.0.0): do not edit by hand +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/plotSmarties.R \name{plotSmarties} \alias{plotSmarties} \title{Plot the Smarties color palettes}