Nothing
#
# _ _ _ _ _
# (_) | | | | | | | |
# _ __ ___ _ _ __ | |_ | |__ | | __ _ _ __ | | __
# | '_ \ / _ \ | || '_ \ | __|| '_ \ | | / _` || '_ \ | |/ /
# | |_) || (_) || || | | || |_ | |_) || || (_| || | | || <
# | .__/ \___/ |_||_| |_| \__||_.__/ |_| \__,_||_| |_||_|\_\
# | |
# |_|
#
# This file is part of the 'rich-iannone/pointblank' package.
#
# (c) Richard Iannone <riannone@me.com>
#
# For full copyright and license information, please look at
# https://rich-iannone.github.io/pointblank/LICENSE.html
#
reporting_languages <-
c(
"en", "fr", "de", "it", "es", "pt", "tr",
"zh", "ru", "pl", "da", "sv", "nl"
)
normalize_reporting_language <- function(lang) {
if (is.null(lang)) return("en")
if (!(tolower(lang) %in% reporting_languages)) {
stop(
"The text ", lang, " doesn't correspond to a pointblank ",
"reporting language.",
call. = FALSE
)
}
tolower(lang)
}
get_lsv <- function(text,
file = system.file(
"text", "translations_built", package = "pointblank"
)) {
x <- readRDS(file = file)
if (length(text) == 2) {
x <- x[[text[1]]]
return(unlist(x[[text[2]]]))
} else if (length(text) == 1) {
if (grepl("/", text)) {
text <- unlist(strsplit(text, "/"))
x <- x[[text[1]]]
return(unlist(x[[text[2]]]))
} else {
return(unlist(x[[text]]))
}
} else {
stop("The length of `text` must be either 1 or 2.")
}
}
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.