Description Usage See Also Examples
Print one or several variables into the Javascript console. Values will be coerced to character and pasted with 'collapse=", "' (see examples).
1 |
shinyjs::showLog console_log
1 2 3 4 5 6 7 | #in server.R
console_var(letters[1], letters[2:4])
console_var(names(iris)[1:2], dim(iris))
#output in the JS console:
#letters[1]=[a], letters[2:3]=[b, c, d]
#names(iris)[1:2]=[Sepal.Length, Sepal.Width], dim(iris)=[150, 5]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.