wordWrap {prettifyAddins}R 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.


[Package prettifyAddins version 2.6.1 Index]