Description Usage Arguments Value Examples
Run a .Rmd file
1 |
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 |
knitopts |
(list) List of variables passed on to
|
A path, unless a gist object is passed in, in which case a gist object is returned.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# run a local file
file <- system.file("examples", "stuff.Rmd", package = "gistr")
run(file) %>% gist_create
# run code
run({'
```{r}
x <- letters
(numbers <- runif(8))
```
'}) %>% gist_create
# run a file from a gist, has to get file first
gists('minepublic')[[2]] %>% run() %>% update()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.