From 9a4d1a77a6e2104ad24cb162e777badbd947d697 Mon Sep 17 00:00:00 2001 From: al-obrien Date: Fri, 10 Nov 2023 09:36:49 -0700 Subject: [PATCH] Remove dontrun example for CRAN submission Example was for parallizing with future() but should be clear from the details of the function definition if the user is inclined to explore the feature. --- R/create_lists.R | 7 ------- man/create_osv_list.Rd | 7 ------- 2 files changed, 14 deletions(-) diff --git a/R/create_lists.R b/R/create_lists.R index ae14ecc..cef36a0 100644 --- a/R/create_lists.R +++ b/R/create_lists.R @@ -40,13 +40,6 @@ #' pkg_vul <- osv_query(c('dask', 'dash'), ecosystem = c('PyPI', 'PyPI')) #' create_osv_list(rosv_query = pkg_vul) #' -#' \dontrun{ -#' # In parallel -#' future::plan(multisession, workers = 4) -#' pypi_vul <- create_osv_list(ecosystem = 'PyPI') -#' future::plan(sequential) -#' } -#' #' @export create_osv_list <- function(rosv_query = NULL, ecosystem = NULL, delim = '\t', as.data.frame = FALSE, refresh = FALSE, clear_cache = FALSE) { diff --git a/man/create_osv_list.Rd b/man/create_osv_list.Rd index ddeaa50..f805bd1 100644 --- a/man/create_osv_list.Rd +++ b/man/create_osv_list.Rd @@ -61,12 +61,5 @@ try(unlink(c(file_name1, file_name2))) # Use from query instead of entire database pkg_vul <- osv_query(c('dask', 'dash'), ecosystem = c('PyPI', 'PyPI')) create_osv_list(rosv_query = pkg_vul) - -\dontrun{ -# In parallel -future::plan(multisession, workers = 4) -pypi_vul <- create_osv_list(ecosystem = 'PyPI') -future::plan(sequential) -} \dontshow{\}) # examplesIf} }