get_output | R Documentation |
Captures console output of a command (show()
) and copies it to clipboard as a HTML code block.
get_output( x, style = FALSE, global_style = FALSE, css = "background:#002140;color:white;width:max-content;margin:auto" )
x |
Valid R command whose output you want to copy. |
style |
|
global_style |
|
css |
|
x <- rnorm(100) y <- 4 + .7 * x + rnorm(100) get_output(summary(lm(y ~ x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.