Skip to content

Instantly share code, notes, and snippets.

@rmflight
Created October 19, 2012 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmflight/3919523 to your computer and use it in GitHub Desktop.
Save rmflight/3919523 to your computer and use it in GitHub Desktop.
storing data with side effect of printing
```{r defineFunct}
insertStoreText <- function(inObj, inText){
cat(inText)
inObj <- c(inObj, inText)
return(inObj)
}
inObj <- character(0)
```
THis is a simple test `r I(inObj <- insertStoreText(inObj, "hello world"))` to see what happens.
```{r whatObj}
inObj
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment