create_text_getter | R Documentation |
Create a get_text() Function
create_text_getter(raw_strings = NULL, FUN = NULL)
raw_strings |
list of string definitions (key = value) pairs |
FUN |
function to be called to get the string definitions |
a function that can be used to lookup the string constant(s)
get_text <- create_text_getter( list(hello_en = "good morning", hello_de = "sch<oe>ne Gr<ue><ss>e") ) get_text("hello_en") get_text("hello_de") #get_text("no_such_key") # error with clear error message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.