render_type {datapasta} | R Documentation |
Renders a character vector as R types for pasting into Rstudio. Strings are quoted. Numbers, NA, logicals etc are not.
render_type(char_vec, char_type)
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 |
A vector parsed from the clipboard as ether a character string or a character vector. The type attribute contains the type guessed by 'readr'.