x: Input, one of: code wrapped in curly brackets and quotes, a file path to an .Rmd file, or a gist.
filename: Name of the file to create, only used if code
parameter is used. Default to code.R
knitopts: (list) List of variables passed on to knitr::knit()
Returns
A path, unless a gist object is passed in, in which case a gist object is returned.
Examples
## Not run:# run a local filefile <- system.file("examples","stuff.Rmd", package ="gistr")run(file)%>% gist_create
# run coderun({'
```{r}x <- letters
(numbers <- runif(8))