render_type_pad_to {datapasta}R 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.


[Package datapasta version 3.1.0 Index]