render_type_pad_to: render_type_pad_to

View source: R/tribble_paste.R

render_type_pad_toR Documentation

render_type_pad_to

Description

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

Usage

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.


MilesMcBain/datapasta documentation built on May 5, 2022, 8:56 a.m.