The actual vignette path is available using
biocPkgList
.
character(1) The filename of the downloaded vignette
x = biocPkgList()
#> 'getOption("repos")' replaces Bioconductor standard repositories, see
#> 'help("repositories", package = "BiocManager")' for details.
#> Replacement repositories:
#> CRAN: https://cran.rstudio.com
tmp = getBiocVignette(x$vignettes[[1]][1])
tmp
#> [1] "/tmp/RtmpGjRctM/file219677579f7"
if (FALSE) { # \dontrun{
library(pdftools)
y = pdf_text(tmp)
y = paste(y,collapse=" ")
library(tm)
v = VCorpus(VectorSource(y))
v <- v |>
tm_map(stripWhitespace) |>
tm_map(content_transformer(tolower)) |>
tm_map(removeWords, stopwords("english")) |>
tm_map(stemDocument)
dtm = DocumentTermMatrix(v)
inspect(DocumentTermMatrix(v,
list(dictionary = as.character(x$Package))))
} # }