render_type: render_type

Description Usage Arguments Value

View source: R/tribble_paste.R

Description

Renders a character vector as R types for pasting into Rstudio. Strings are quoted. Numbers, NA, logicals etc are not.

Usage

1
render_type(char_vec, char_type)

Arguments

char_vec

a character vector containing text to be rendered as the type indicated by type_str

char_type

a string describing the type of char_vec

Value

A vector parsed from the clipboard as ether a character string or a character vector. The type attribute contains the type guessed by 'readr'.


datapasta documentation built on April 17, 2020, 1:27 a.m.