Skip to content

Commit ceefb15

Browse files
committed
typo
1 parent 1e01cad commit ceefb15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: R/helpers.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ cache.on <- function()
320320
#' splitLine("foo bar", 6)
321321
#' splitLine("foo bar", 7)
322322
#' splitLine("Pandoc Package", 3, TRUE)
323-
splitLine <- function(x, max.width = panderOptions('table.split.cells'), use.hyphening = FALSE){
323+
splitLine <- function(x, max.width = panderOptions('table.split.cells'), use.hyphening = FALSE) {
324324
if (any(is.na(x)))
325325
return(x)
326326
if (!is.character(x) || !is.null(dim(x)) || length(x) != 1 || x == "")
@@ -329,9 +329,9 @@ splitLine <- function(x, max.width = panderOptions('table.split.cells'), use.hyp
329329
return(x)
330330
if (is.infinite(max.width))
331331
max.width <- .Machine$integer.max
332-
if (use.hyphening && !requireNamespace('coRpus', quietly = TRUE))
332+
if (use.hyphening && !requireNamespace('koRpus', quietly = TRUE))
333333
use.hyphening <- FALSE
334334
hyphen_f <- function(s)
335-
koRpus::hyphen(s, hyph.pattern="en.us", quiet = TRUE)@hyphen[1,2]
335+
koRpus::hyphen(s, hyph.pattern = 'en.us', quiet = TRUE)@hyphen[1, 2]
336336
.Call('pander_splitLine_cpp', PACKAGE = 'pander', x, max.width, use.hyphening, hyphen_f)
337337
}

0 commit comments

Comments
 (0)