wordWrap: Word wrap using V8

View source: R/prettify_V8.R

wordWrapR Documentation

Word wrap using V8

Description

Word wrap a text.

Usage

wordWrap(contents = NA, ncharacters = 80)

Arguments

contents

the text to be wrapped; there are three possibilities for this argument: NA (default), to use the file currently opened in RStudio; the path to a file; or the code given as a character vector

ncharacters

target number of characters per line

Value

The wrapped text in a character string.


prettifyAddins documentation built on Sept. 14, 2023, 5:06 p.m.