From 9c66e175a13cfeb14491deff046d2f14222ab85a Mon Sep 17 00:00:00 2001 From: Luke Johnston Date: Mon, 29 Apr 2019 20:09:20 +0200 Subject: [PATCH] add pipe function plus add package doc function --- R/campout-package.R | 10 ++++++++++ R/utils-pipe.R | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 R/campout-package.R create mode 100644 R/utils-pipe.R diff --git a/R/campout-package.R b/R/campout-package.R new file mode 100644 index 0000000..4e5cd68 --- /dev/null +++ b/R/campout-package.R @@ -0,0 +1,10 @@ +#' @keywords internal +#' @import dplyr stringr +#' +"_PACKAGE" + +# The following block is used by usethis to automatically manage +# roxygen namespace tags. Modify with care! +## usethis namespace: start +## usethis namespace: end +NULL diff --git a/R/utils-pipe.R b/R/utils-pipe.R new file mode 100644 index 0000000..fb8c818 --- /dev/null +++ b/R/utils-pipe.R @@ -0,0 +1,11 @@ +#' Pipe operator +#' +#' See \code{magrittr::\link[magrittr]{\%>\%}} for details. +#' +#' @name %>% +#' @rdname pipe +#' @keywords internal +#' @export +#' @importFrom magrittr %>% +#' @usage lhs \%>\% rhs +NULL