clearSession | R Documentation |
This function clears the specified speller instance of all information it has collected during the (spelling) session and make it is behave as if it were a new speller.
One can also create a new speller. The advantage of clearing it is that the options are still present.
clearSession(speller)
speller |
the |
An integer value indicating whether the operation was successful (non-zero) or not (0).
Duncan Temple Lang <duncan@wald.ucdavis.edu>
getSpeller
AspellSpeller-class
sp = getSpeller()
aspell("duncan", FALSE, speller = sp)
addToList("duncan", speller = sp)
# Should be treated as spelled correctly now.
aspell("duncan", FALSE, speller = sp)
# Will throw error if a WritableDict since method is unimplemented.
try(clearSession(sp))
# Should be mis-spelled again.
aspell("duncan", FALSE, speller = sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.