From 3593d70a76da760ae2cd4b761ebdaa43e57db66f Mon Sep 17 00:00:00 2001 From: Cole Arendt Date: Thu, 28 May 2020 10:10:08 -0400 Subject: [PATCH] wrap worldbank examples in dontrun --- R/data-worldbank.R | 2 ++ man/worldbank.Rd | 2 ++ 2 files changed, 4 insertions(+) diff --git a/R/data-worldbank.R b/R/data-worldbank.R index dc89535..6980f75 100644 --- a/R/data-worldbank.R +++ b/R/data-worldbank.R @@ -8,6 +8,7 @@ #' @format JSON #' @examples #' +#' \dontrun{ #' library(dplyr) #' #' # worldbank is a 500 length character vector of JSON @@ -36,4 +37,5 @@ #' count(sector) %>% # Count by sector #' arrange(desc(n)) %>% # Arrange descending #' top_n(10) # Take the top 10 +#' } NULL diff --git a/man/worldbank.Rd b/man/worldbank.Rd index 82dac2a..ee57630 100644 --- a/man/worldbank.Rd +++ b/man/worldbank.Rd @@ -15,6 +15,7 @@ From: http://jsonstudio.com/resources/ } \examples{ +\dontrun{ library(dplyr) # worldbank is a 500 length character vector of JSON @@ -44,3 +45,4 @@ wb_sectors \%>\% arrange(desc(n)) \%>\% # Arrange descending top_n(10) # Take the top 10 } +}