newlines_to_definition: Add new lines to disease description

Description Usage Arguments Value Examples

View source: R/newlines_to_definition.R View source: R/add_newlines_to_hpo_term_definition.R

Description

Adds new lines to the description so that hover boxes dont get too wide.

Adds new lines to the description so that hover boxes dont get too wide.

Usage

1
2
3
newlines_to_definition(definition, line_length = 10)

newlines_to_definition(definition, line_length = 10)

Arguments

definition

A disease description string

line_length

A integer representing the desired words per line.

Value

The disease description with newline symbols added every nth word.

The disease description with newline symbols added every nth word.

Examples

1
2
## Not run: newlines_to_definition(disease_description, 10)
## Not run: newlines_to_definition(disease_description, 10)

ovrhuman/HPOExplorer documentation built on Dec. 22, 2021, 5:21 a.m.