From 660ff6f0f0e549f95c624776749c035583f3194a Mon Sep 17 00:00:00 2001 From: dgohel Date: Wed, 7 Feb 2018 12:07:22 +0100 Subject: [PATCH] oops --- DESCRIPTION | 2 +- R/body_add_vg.R | 2 +- R/ph_with_vg.R | 2 +- tests/testthat/test-docx-text.R | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ce60533..c8c0c9c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: rvg Type: Package Title: R Graphics Devices for Vector Graphics Output -Version: 0.1.8.0001 +Version: 0.1.8.0002 Authors@R: c( person("David", "Gohel", role = c("aut", "cre"), email = "david.gohel@ardata.fr"), diff --git a/R/body_add_vg.R b/R/body_add_vg.R index f437772..a1a46a8 100644 --- a/R/body_add_vg.R +++ b/R/body_add_vg.R @@ -44,7 +44,7 @@ body_add_vg <- function( x, code, pos = "after", ... ){ tryCatch(code, finally = dev.off() ) raster_files <- list.files(path = getwd(), pattern = paste0("^", uid, "(.*)\\.png$"), full.names = TRUE ) - xml_elt <- scan( dml_file, what = "character", quiet = T, sep = "\n" ) + xml_elt <- scan( dml_file, what = "character", quiet = T, sep = "\n", encoding = "UTF-8" ) xml_elt <- gsub(pattern = "", replacement = paste0("", x)) })