vector_code_add-ins: Vector code add-ins

Description Usage Arguments Note

Description

Use 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.

Use 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.

Usage

1
2
3
4
5

Arguments

text

Either the clipboard, current text selection or a character.

Note

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.


t-gummer/RADins documentation built on Sept. 14, 2020, 7:58 p.m.