Nothing
library(formatBibtex)
## simple examples
foo <- c("iT IS_A_sIMPLe_ExamplE.", "let'S_do soMe_tesTs!")
format_string(foo, style = "title")
format_string(foo, style = "sentence")
## protect some words from formatting
## check out the built-in
(default_protected_words <- getOption("formatBibtex.protected_words"))
## e.g., protect ABCD from being converted to lowercase
bar <- c("on_the_convergence properties of the ABCD_algorithm",
"teSt: tHe cluster is Running MCMC!")
format_string(bar, style = "sentence",
protected_words = c(default_protected_words, "ABCD"))
## more tricky examples: protected words contain `str4split`
foo <- c("nineteenth- and twentieth-century writers",
"well-differentiated cells with arXiv e-prints")
format_string(foo, str4split = "-| ",
protected_words = c("arXiv", "e-prints"))
## trivial examples
format_string(NULL)
format_string(character(0))
format_string(character(3))
format_string(c(NA, "", "hello world!"))
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.