diff --git a/.Rbuildignore b/.Rbuildignore index a2a4b3b..458818e 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,4 +1,5 @@ ^uPlot-r\.Rproj$ +^uPlot\.Rproj$ ^\.Rproj\.user$ ^LICENSE\.md$ ^srcjs$ diff --git a/DESCRIPTION b/DESCRIPTION index d3c84f9..7c51ead 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -21,7 +21,8 @@ Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 Imports: - htmlwidgets + htmlwidgets, + magrittr Depends: R (>= 2.10) LazyData: true diff --git a/NAMESPACE b/NAMESPACE index 0a51628..b3cad8e 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,11 +1,14 @@ # Generated by roxygen2: do not edit by hand +export("%>%") export(renderUPlot) export(uPlot) export(uPlotOutput) export(uSeries) +importFrom(grDevices,palette) importFrom(htmlwidgets,createWidget) importFrom(htmlwidgets,shinyRenderWidget) importFrom(htmlwidgets,shinyWidgetOutput) importFrom(htmlwidgets,sizingPolicy) +importFrom(magrittr,"%>%") importFrom(utils,modifyList) diff --git a/R/reexports.R b/R/reexports.R new file mode 100644 index 0000000..62a7058 --- /dev/null +++ b/R/reexports.R @@ -0,0 +1,15 @@ + +#' Re-exported operators and S3 methods +#' +#' The following functions are imported and then re-exported +#' from this package to avoid listing the packages used +#' as Depends +#' +#' @name re-exports +NULL + +#' @importFrom magrittr %>% +#' @name %>% +#' @export +#' @rdname re-exports +NULL diff --git a/R/uPlot.R b/R/uPlot.R index 2519c15..634f891 100644 --- a/R/uPlot.R +++ b/R/uPlot.R @@ -12,6 +12,7 @@ #' @return An `htmlwidget` object of class `"uPlot"`. #' #' @importFrom htmlwidgets createWidget sizingPolicy +#' @importFrom grDevices palette #' #' @export #' diff --git a/man/re-exports.Rd b/man/re-exports.Rd new file mode 100644 index 0000000..379edb4 --- /dev/null +++ b/man/re-exports.Rd @@ -0,0 +1,11 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/reexports.R +\name{re-exports} +\alias{re-exports} +\alias{\%>\%} +\title{Re-exported operators and S3 methods} +\description{ +The following functions are imported and then re-exported +from this package to avoid listing the packages used +as Depends +}