Nothing
#* @get /count
{
if (!exists("count")) {
count <- 0
}
# will not init if variable exists,
# testing against sourcing an endpoint twice in the same envir
count <- count + 1
function() {
count
}
}
#* @get /static_count
function() {
static_count
}
# will not init if variable exists,
# testing against sourcing a script twice in the same envir
if (!exists("static_count")) {
static_count <- 0
}
static_count <- static_count + 1
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.