From f21558190e02dc6e0d5d0ced49f71c1162937f02 Mon Sep 17 00:00:00 2001 From: Jan Wijffels Date: Sat, 10 Oct 2020 22:33:53 +0200 Subject: [PATCH] Further fixing conditional examples --- R/textrank.R | 2 +- man/textrank_sentences.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/textrank.R b/R/textrank.R index 1ab45b5..b1dff23 100644 --- a/R/textrank.R +++ b/R/textrank.R @@ -179,7 +179,6 @@ textrank_candidates_all <- function(x){ #' tr <- textrank_sentences(data = sentences, terminology = terminology) #' summary(tr, n = 2) #' summary(tr, n = 5, keep.sentence.order = TRUE) -#' \dontshow{\} # End of main if statement running only if the required packages are installed} #' #' \dontrun{ #' ## Using minhash to reduce sentence combinations - relevant if you have a lot of sentences @@ -195,6 +194,7 @@ textrank_candidates_all <- function(x){ #' tr <- textrank_sentences(data = sentences, terminology = terminology, max = 100) #' tr #' summary(tr, n = 2) +#' \dontshow{\} # End of main if statement running only if the required packages are installed} textrank_sentences <- function(data, terminology, textrank_dist = textrank_jaccard, textrank_candidates = textrank_candidates_all(data$textrank_id), diff --git a/man/textrank_sentences.Rd b/man/textrank_sentences.Rd index 2a8f9a4..01a29de 100644 --- a/man/textrank_sentences.Rd +++ b/man/textrank_sentences.Rd @@ -80,7 +80,6 @@ head(terminology) tr <- textrank_sentences(data = sentences, terminology = terminology) summary(tr, n = 2) summary(tr, n = 5, keep.sentence.order = TRUE) -\dontshow{\} # End of main if statement running only if the required packages are installed} \dontrun{ ## Using minhash to reduce sentence combinations - relevant if you have a lot of sentences @@ -96,6 +95,7 @@ summary(tr, n = 2) tr <- textrank_sentences(data = sentences, terminology = terminology, max = 100) tr summary(tr, n = 2) +\dontshow{\} # End of main if statement running only if the required packages are installed} } \seealso{ \code{\link[igraph]{page_rank}}, \code{\link{textrank_candidates_all}}, \code{\link{textrank_candidates_lsh}}, \code{\link{textrank_jaccard}}