-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from jimhester/master
Add function to word wrap long character vectors
- Loading branch information
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/formatter.r | ||
\name{wrap_format} | ||
\alias{wrap_format} | ||
\title{Wrap text to a specified width, adding newlines for spaces if text exceeds | ||
the width} | ||
\usage{ | ||
wrap_format(width) | ||
} | ||
\arguments{ | ||
\item{width}{value above which to wrap} | ||
} | ||
\value{ | ||
Function with single parameter x, a character vector, that | ||
returns a wrapped character vector | ||
} | ||
\description{ | ||
Wrap text to a specified width, adding newlines for spaces if text exceeds | ||
the width | ||
} | ||
\examples{ | ||
wrap_10 <- wrap_format(10) | ||
wrap_10('A long line that needs to be wrapped') | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters