Skip to content

Commit

Permalink
removed interactive() in example
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Oct 28, 2024
1 parent 70323ef commit e8111a3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
11 changes: 11 additions & 0 deletions R/layers.R
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,17 @@ v_heatmap <- function(vc,
#' @export
#'
#' @example examples/v_wordcloud.R
#' @examples
#' \donttest{
#'
#' # Use an image to shape the wordcloud
#' vchart(top_cran_downloads) %>%
#' v_wordcloud(
#' aes(word = package, count = count, color = package),
#' maskShape = "https://jeroen.github.io/images/Rlogo.png"
#' )
#'
#' }
v_wordcloud <- function(vc,
mapping = NULL,
data = NULL,
Expand Down
10 changes: 0 additions & 10 deletions examples/v_wordcloud.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,3 @@ vchart(top_cran_downloads) %>%
)
)
)


if (interactive()) {
# Use an image to shape the wordcloud
vchart(top_cran_downloads) %>%
v_wordcloud(
aes(word = package, count = count, color = package),
maskShape = "https://jeroen.github.io/images/Rlogo.png"
)
}
16 changes: 8 additions & 8 deletions man/v_wordcloud.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e8111a3

Please sign in to comment.