render_type_pad_to: render_type_pad_to

Description Usage Arguments Value

View source: R/tribble_paste.R

Description

Based on a type and length, render a character string as the type in text. Pad to the desired length.

Usage

1
render_type_pad_to(char_vec, char_type, char_length)

Arguments

char_vec

a character vector

char_type

a string type from readr::guess_parser

char_length

a string length to pad to.

Value

a string containing the representation of char_vec as char_type in the RStudio source editor, left-padded with spaces to char_length.


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