R/foo.r

Defines functions foo bar

Documented in bar foo

#' A function where pkgconfig takes no effect
#'
#' Blah blah blah
#' 
#' @import ggplot2
#' @export
foo <- function() {
  ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length)) +
    geom_point(aes(colour = Petal.Length))
}

#' A function where pkgconfig does take effect
#' @export
bar <- function() {
  ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length)) +
    geom_point(aes(colour = Petal.Length)) +
    scale_colour_continuous()
}
karawoo/testpkg documentation built on May 21, 2019, 2:26 a.m.