From: dscott Date: Sat, 30 Jan 2016 00:49:36 +0000 (+0000) Subject: Fixed default of sanitize type argument to be 'latex' as specified in the docs X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2896d407e84ae7d8ca1fbe63c2ba189583d7fe28;p=xtable.git Fixed default of sanitize type argument to be 'latex' as specified in the docs git-svn-id: svn://scm.r-forge.r-project.org/svnroot/xtable@109 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- diff --git a/pkg/R/sanitize.R b/pkg/R/sanitize.R index b5b83cf..77404b7 100644 --- a/pkg/R/sanitize.R +++ b/pkg/R/sanitize.R @@ -1,4 +1,4 @@ -sanitize <- function(str, type) { +sanitize <- function(str, type = "latex") { if(type == "latex"){ result <- str result <- gsub("\\\\", "SANITIZE.BACKSLASH", result) diff --git a/pkg/man/sanitize.Rd b/pkg/man/sanitize.Rd index 5b65808..f228a6d 100644 --- a/pkg/man/sanitize.Rd +++ b/pkg/man/sanitize.Rd @@ -14,7 +14,7 @@ meaning in the output format. } \usage{ -sanitize(str, type) +sanitize(str, type = "latex") sanitize.numbers(str, type, math.style.negative = FALSE, math.style.exponents = FALSE) sanitize.final(str, type)