From 54c73039178e2e71a172e094ad64efd101edef86 Mon Sep 17 00:00:00 2001 From: Fernando Mayer <fernandomayer@gmail.com> Date: Mon, 28 Sep 2015 01:08:09 -0300 Subject: [PATCH] Remove extra unnecessary lines at the end of file --- R/knit2wpCrayon.R | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/R/knit2wpCrayon.R b/R/knit2wpCrayon.R index 6c4f45c..b1a879f 100644 --- a/R/knit2wpCrayon.R +++ b/R/knit2wpCrayon.R @@ -76,7 +76,7 @@ knit2wpCrayon <- function(input, title="A post from knitr", ..., native_encode <- function (x, to = ""){ idx = Encoding(x) == "UTF-8" x2 = iconv(x, if (any(idx)) "UTF-8" else "", to) - if (!any(is.na(x2))) + if (!any(is.na(x2))) return(x2) warning("some characters may not work under the current locale") x @@ -112,7 +112,3 @@ knit2wpCrayon <- function(input, title="A post from knitr", ..., print(do.call(action, args=WPargs)) } } - - -library(knitr) -knitr:::native_encode -- GitLab