Skip to content

Commit

Permalink
cran remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor authored Oct 25, 2024
1 parent b239057 commit d31008a
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 40 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: vchartr
Title: Interactive Charts with the JavaScript 'VChart' Library
Title: Interactive Charts with the 'JavaScript' 'VChart' Library
Version: 0.1.2
Authors@R: c(
person("Victor", "Perrier", email = "[email protected]", role = c("aut", "cre")),
Expand Down
67 changes: 67 additions & 0 deletions R/reexports.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

#' Pipe operator
#'
#' See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom magrittr %>%
#' @usage lhs \%>\% rhs
#' @param lhs A value or the magrittr placeholder.
#' @param rhs A function call using the magrittr semantics.
#' @return The result of calling `rhs(lhs)`.
NULL

#' Mark character strings as literal JavaScript code
#'
#' See [htmlwidgets::JS()] for details.
#'
#' @name JS
#' @keywords internal
#' @export
#' @importFrom htmlwidgets JS
#' @usage JS(...)
#' @inheritParams htmlwidgets::JS
#' @return A string that will be interpreted as JavaScript code in htmlwidgets.
NULL

#' Construct aesthetic mappings
#'
#' See [ggplot2::aes()] for details.
#'
#' @name aes
#' @keywords internal
#' @export
#' @importFrom ggplot2 aes
#' @usage aes(x, y, ...)
#' @inheritParams ggplot2::aes
#' @return A list with class `uneval`. Components of the list are either quosures or constants.
NULL

#' Quote faceting variables
#'
#' See [ggplot2::vars()] for details.
#'
#' @name vars
#' @keywords internal
#' @export
#' @importFrom ggplot2 vars
#' @usage vars(...)
#' @inheritParams ggplot2::vars
#' @return A list with class `uneval`. Components of the list are either quosures or constants.
NULL

#' Useful labeller functions
#'
#' See [ggplot2::label_value()] for details.
#'
#' @name label_value
#' @keywords internal
#' @export
#' @importFrom ggplot2 label_value
#' @usage label_value(labels, multi_line = TRUE)
#' @inheritParams ggplot2::label_value
#' @return Labels to be used in a facetted chart.
NULL
39 changes: 0 additions & 39 deletions R/vchart-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,3 @@
#' @name vchartr-package
#' @author Victor Perrier (@@dreamRs_fr)
"_PACKAGE"

#' vchartr exported operators and S3 methods
#'
#' The following functions are imported and then re-exported
#' from the vchartr package to avoid listing the magrittr
#' as Depends of vchartr
#'
#' @name vchartr-exports
NULL

#' @importFrom magrittr %>%
#' @name %>%
#' @export
#' @rdname vchartr-exports
NULL

#' @importFrom ggplot2 aes
#' @name aes
#' @export
#' @rdname vchartr-exports
NULL

#' @importFrom ggplot2 vars
#' @name vars
#' @export
#' @rdname vchartr-exports
NULL

#' @importFrom ggplot2 label_value
#' @name label_value
#' @export
#' @rdname vchartr-exports
NULL

#' @importFrom htmlwidgets JS
#' @name JS
#' @export
#' @rdname vchartr-exports
NULL

0 comments on commit d31008a

Please sign in to comment.