Skip to content

Instantly share code, notes, and snippets.

@ajp619
Last active October 30, 2015 15:00
Show Gist options
  • Save ajp619/0278666f3ed7db73573b to your computer and use it in GitHub Desktop.
Save ajp619/0278666f3ed7db73573b to your computer and use it in GitHub Desktop.
Useful code chunk options
Entire R script
'''{r code=capture.output(cat(readLines('clustering_library.R'), sep='\n'))}
'''
A single function
'''{r code=capture.output(dump('initBuckets', ''))}
'''
note: replaced back ticks with forward ticks so the options would show up instead of being hidden.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment