Nothing
See if chunk options like tidy
, prompt
and echo
, etc work as expected.
1+1 for (i in 1:10) { # nothing before 10 if(i>=10)print(i) } # two blank lines below dnorm(0)
options(prompt='R> ', continue='+ ')
{ # can you deal with \code{foo} or \n, \a? gsub('\\.', '\\\\', 'a.b.c') # \link{bar} } cat('a\tb\nc')
We can set formatR options globally:
options(formatR.blank = FALSE)
Or locally in one chunk via tidy.opts
. Do not keep comments:
Move left braces to the next line:
Indent by 2 spaces:
See http://yihui.org/formatR for details.
Do not include messages:
1+1 message('helloooo!')
No warnings:
1:2+1:3 warning('no no no')
Select warnings using numeric indices:
Invalid indices will select nothing:
Do not show text results:
Flush all results to the end of a chunk:
Output as is:
cat('_Markdown_,', 'oh yeah, **Markdown**')
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.