An addin for RStudio to paste last value as comment in code by Kyaw Sint (Joe)
devtools::install_github("ksint/pasteLastVal")
Add keyboard shortcut
1) Go to Tools
-> Modify Keyboard Shortcuts...
2) Type addin
in the search box
3) Assign a shortcut for Paste Last Value
. I use Ctrl + Shift + V
1) Access the pasteLastVal function by Addins
-> Paste Last Value
or
2) Use the user-assigned keyboard shortcut (see above).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.