Currently, if I run
reprex::reprex({x <- rnorm(100) ; mean(x)}, venue = 'gh', show = FALSE)
I get the code for
x <- rnorm(100)
mean(x)
#> [1] 0.06771625
which is wonderful! However, changing the comment character, e.g. to ## is more complicated, requiring (as suggested on Twitter) copying
#+ include=FALSE
knitr::opts_chunk$set(comment = '##')
#+ realstuff
x <- rnorm(100)
mean(x)
and then calling reprex::reprex() to get the code for
x <- rnorm(100)
mean(x)
## [1] 0.04698201
To make this process simpler, could we get a comment character parameter in reprex akin to formatR::tidy_eval's prefix?
Currently, if I run
I get the code for
which is wonderful! However, changing the comment character, e.g. to
##is more complicated, requiring (as suggested on Twitter) copyingand then calling
reprex::reprex()to get the code forTo make this process simpler, could we get a comment character parameter in
reprexakin toformatR::tidy_eval'sprefix?