ourMELONS/R/takeLine.R
Waldir Leoncio 273edafd30 Improved output of writeMixtureInfo()
Also, incremented version number to 0.0.0.9024
2023-09-14 12:52:30 +02:00

15 lines
436 B
R

#' @title Take line
#' @description Returns one line from the description.
#' @param description description
#' @param width width
#' @return newline
takeLine <- function(description, width) {
# Returns one line from the description: line ends to the first
# space after width:th mark.
n <- width + 1
while (description[n] != "" && n < length(description)) {
n <- n + 1
}
newline <- description[1:n]
return(newline)
}