Description Usage Arguments Examples
SMMRY offers a service to automatically summarize
a webpage or simply text. smmry_api
allows
to access this service from within R. To use it
you need a SMMRY API Key (http://smmry.com/api)
that has to be set as a environment variable
SMMRY_PAT
.
1 2 |
x |
string. text or url of the webpage to summarize - uses data from clipboard, if x is not set |
quick |
boolean. switch to decide if the result should
be just the reduced text (default = |
isurl |
boolean. switch to decide if x should be treated
as text ( |
length |
integer. number of sentences returned by SMMRY,
(default = |
keywords |
integer. number of top keywords returned by SMMRY |
quote_avoid |
boolean. switch to decide if the SMMRY
result should (default = |
breaks |
boolean. switch to decide if the SMMRY result
should ( |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | lorem_ipsum <- "Lorem ipsum dolor sit amet, consetetur
sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero
eos et accusam et justo duo dolores et ea
rebum. Stet clita kasd gubergren, no sea
takimata sanctus est Lorem ipsum dolor sit
amet. Lorem ipsum dolor sit amet, consetetur
sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero
eos et accusam et justo duo dolores et ea
rebum. Stet clita kasd gubergren, no sea
takimata sanctus est Lorem ipsum dolor sit
amet."
testurl <- "https://en.wikipedia.org/wiki/Aregund"
smmry_api(x = lorem_ipsum)
smmry_api(x = lorem_ipsum, quick = FALSE)
smmry_api(x = testurl)
smmry_api(x = testurl, quick = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.