diff --git a/Jenkinsfile b/Jenkinsfile index 453a8df..1c4c79a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,6 +31,13 @@ pipeline { } } + stage('testthat'){ + steps { + sh ``` + R -e 'testthat::test_local(".")' + ``` + } + } stage('Clean') { diff --git a/R/logo.R b/R/logo.R index fecd0a4..c549c1e 100644 --- a/R/logo.R +++ b/R/logo.R @@ -84,7 +84,7 @@ add_logo <- function(plot, logo, margin_param = NULL) { #' @export #' #' @examples -#' p1 <- qplot(mpg, wt, data = mtcars) +#' p1 <- ggplot2::qplot(mpg, wt, data = mtcars) #' measure_caption(p1) # Should equal 1 since no caption is required measure_caption <- function(gg) { if (has_caption(gg)) {