Nothing
Code
cli::cat_line(reprex({
x <- 1:5
mean(x)
}, render = FALSE))
Output
#' ---
#' output: reprex::reprex_document
#' ---
x <- 1:5
mean(x)
Code
cli::cat_line(reprex(input = c("x <- 5:1", "mean(x)"), render = FALSE))
Output
#' ---
#' output: reprex::reprex_document
#' ---
x <- 5:1
mean(x)
Code
cli::cat_line(reprex(input = "foo.R", render = FALSE))
Output
#' ---
#' output: reprex::reprex_document
#' ---
x <- 6:10
mean(x)
Code
cli::cat_line(reprex(input = path("foo", "foo.R"), render = FALSE))
Output
#' ---
#' output: reprex::reprex_document
#' ---
x <- 11:15
mean(x)
Code
reprex(input = ret, render = FALSE)
Condition
Error in `reprex()`:
! Cancelling.
Code
reprex(input = ret, render = FALSE)
Condition
Error in `reprex()`:
! Cancelling.
Code
reprex(input = ret, render = FALSE)
Condition
Error in `reprex()`:
! Cancelling.
Code
res2 <- reprex(input = input2, render = FALSE)
Message
i Removing leading prompts from reprex source.
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.