powered by
Style the box::use() calls of a source code
style_box_use_file(filename, indent_spaces = 2, trailing_commas_func = FALSE)
A file path to style.
An integer scalar indicating tab width in units of spaces
A boolean to activate adding a trailing comma to the end of the lists of functions to attach.
Refer to style_box_use_text() for styling details.
style_box_use_text()
code <- "box::use(stringr[str_trim, str_pad], dplyr)" file <- tempfile("style", fileext = ".R") writeLines(code, file) style_box_use_file(file)
Run the code above in your browser using DataLab