Description Usage Arguments Examples

Use the rstudioapi package to insert characters one by one into the RStudio source editor, as if they were typed by a human.

1 | ```
rstudio_type(x, pause = function() 0.1, mistake = 0, save = 0)
``` |

`x` |
A character vector. |

`pause` |
A function to return a number in seconds to pause after typing each character. |

`mistake` |
The probability of making random mistakes when typing the next character. A random mistake is a random string typed into the editor and deleted immediately. |

`save` |
The probability of saving the document after typing each character. Note that If a document is not opened from a file, it will never be saved. |

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.