Merge pull request #469 from accraft/fix-save_kable_latex-pathspace
Fix Issues 444 and 401
diff --git a/R/save_kable.R b/R/save_kable.R
index 3c3a5fa..8238552 100644
--- a/R/save_kable.R
+++ b/R/save_kable.R
@@ -144,7 +144,7 @@
owd <- setwd(dirname(temp_tex_file))
- system(paste0("xelatex -interaction=batchmode ", temp_tex_file))
+ system(paste0('xelatex -interaction=batchmode "', temp_tex_file,'"'))
if (!keep_tex) {
temp_file_delete <- paste0(file_no_ext, c(".tex", ".aux", ".log"))
unlink(temp_file_delete)