From 2896d407e84ae7d8ca1fbe63c2ba189583d7fe28 Mon Sep 17 00:00:00 2001 From: dscott Date: Sat, 30 Jan 2016 00:49:36 +0000 Subject: [PATCH] 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 --- pkg/R/sanitize.R | 2 +- pkg/man/sanitize.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2