KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
whenever I run some R code with Sweave, it displays the terminal arrows (">") in the document. This is fine for session inputs, but sometimes I'd like to include custom functions. When arrows show up in the document, it is more difficult to copy and paste important snippets of code. Is there a quick way to do this? I know I can run the code while suppressing the output all together, and then copy that code into a \Verbatim, but that requires extra typing. Thanks dumbo <- function(x) 2*x instead of > dumbo <- function(x) > 2*x
Tags (comma-separated)
Save Edits
Cancel