View source: R/print.packageSum.R
print.packageSum | R Documentation |
Print a packageSum
object to a file and
pass it to a web browser
## S3 method for class 'packageSum'
print(x, where, title,
openBrowser = TRUE, template, ...)
x |
An object of class |
where |
a character vector interpreted as follows: If If |
title |
An optional title to give the HTML file. Default is to use the original query string. |
openBrowser |
logical; if |
template |
Template file used by |
... |
ignored |
The full path and name of the file created is returned invisibly.
Spencer Graves
print.findFn
packageSum
findFn
,
RSiteSearch
,
browseURL
brew
splineHelp <- try(findFn("spline", maxPages = 2))
if(!inherits(splineHelp, 'try-error')){
splinePkgs <- packageSum(splineHelp)
if(!CRAN()){
print(splinePkgs, 'console')
splinePkgs # all columns in a browser
des1 <- try(findFn('differential equations', 1))
de1 <- try(findFn('differential equation', 1))
# each retrieves 1 page of 20 hits
# but not the same 20
if(!(inherits(des1, 'try-error') ||
inherits(de1, 'try-error'))){
de.s <- unionFindFn(des1, de1)
de.s
# Other example:
webScr <- try(findFn('web scraping'))
if(!inherits(webScr, 'try-error')){
pS <- packageSum(webScr)
print(pS)
}
}
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.