View source: R/console_output.R
| sentence | R Documentation | 
Keep the first sentence of a string.
sentence(string)
string | 
 (Character) A string.  | 
The string with only the first sentence.
## Not run: 
sentence("This is a sentence. And this is another sentence.")
#> [1] "This is a sentence."
sentence("This is just one sentence.")
#> [1] "This is just one sentence."
sentence("Is this a sentence? Or is this one. Maybe this one! What if there are lots of sentences?")
#> [1] "Is this a sentence?
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.