Description Usage Arguments Value Examples
The actual vignette path is available using
biocPkgList
.
1 2 | getBiocVignette(vignettePath, destfile = tempfile(),
version = BiocManager::version())
|
vignettePath |
character(1) the additional path information to get to the vignette |
destfile |
character(1) the file location to store the vignette |
version |
chacter(1) such as "3.7", defaults to user version |
character(1) the filename of the downloaded vignette
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | x = biocPkgList()
tmp = getBiocVignette(x$vignettes[[1]][1])
tmp
## Not run:
library(pdftools)
y = pdf_text(tmp)
y = paste(y,collapse=" ")
library(tm)
v = VCorpus(VectorSource(y))
library(magrittr)
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))))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.