charvec_tc: Copy character vector to clipboard for pasting

View source: R/charvec_tc.R

charvec_tcR Documentation

Copy character vector to clipboard for pasting

Description

Concatenate the elements of a character vector and copy the collapsed string to the clipboard.

Usage

charvec_tc(x, quote = TRUE, linebreaks = TRUE)

Arguments

x

Character vector

quote

Put quotation marks around elements?

linebreaks

Put linebreaks after each element?

Details

Fast way to create text like c("element1", "element2", ...) for pasting into code.

Value

Nothing - copies result to clipboard.

Examples

x <- c("asdjalksjdlaksjd", "12312093u10923012", "asd")
charvec_tc(x)
charvec_tc(x, quote = FALSE, linebreaks = TRUE)
charvec_tc(x, quote = TRUE, linebreaks = FALSE)
charvec_tc(x, quote = FALSE, linebreaks = FALSE)

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.