paste_vector_code() to paste the clipboard to the current cursor location with a conversion to the R code for creating a vector. Note that it does not change the clipboard.
hard_code_vector_code() to execute the code at the current cursor location and convert the result to the R code for creating a vector.
Both of these add-ins can be used to “hard-code” vectors.
copy_r_eval() is meant to do the reverse of
paste_vector_code() by evaluating selected R code and copying the output to the clipboard. Note that this is done without sending the evaluation to the console.
1 2 3 4 5
Either the clipboard, current text selection or a character.
The word “paste” here is not to be confused with the base R
paste function, which is for concatenation.
The usage here is the more general use meaning of “paste”, as in placing the current copied item (i.e. in the clipboard) to the cursor position.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.