yonicd / texPreview
Showing 2 of 6 files from the diff.

@@ -1,3 +1,4 @@
Loading
1 +
#' @importFrom tinytex latexmk
1 2
tex_build <- function(tex_lines,
2 3
                      stem = "tex_temp",
3 4
                      tex_message,
@@ -11,21 +12,16 @@
Loading
11 12
  
12 13
  setwd(fileDir)
13 14
  
14 -
  interaction_mode <- ifelse(tex_message, "nonstopmode", "batchmode")
15 -
  
16 15
  temp_tex    <- sprintf("%sDoc.tex",stem)
17 16
  temp_log    <- sprintf('%sDoc.log',stem)
18 -
  temp_out <- sprintf('%s_stdout.txt',stem)
19 -
  temp_err <- sprintf('%s_stderr.txt',stem)
20 -
  
21 -
  tex_args <- c('-synctex=1',
22 -
                sprintf('-interaction=%s',interaction_mode),
23 -
                '--halt-on-error',
24 -
                temp_tex)
25 17
  
26 18
  writeLines(tex_lines, con = temp_tex)
27 -
28 -
  system2(engine, args = tex_args, stdout = temp_out, stderr = temp_err,...)
19 +
  
20 +
  tinytex::latexmk(file        = temp_tex, 
21 +
                   engine      = engine,
22 +
                   engine_args = '-synctex=1',
23 +
                   clean       = FALSE,
24 +
                   ...)
29 25
  
30 26
  log_lines <- readLines(temp_log)
31 27
  

@@ -233,7 +233,7 @@
Loading
233 233
  
234 234
  class(tab_lines) <- sprintf('texpreview_%s',tex_opts$get('returnType'))
235 235
  
236 -
  tex_log <- tex_build(tex_lines,stem,tex_message,...)
236 +
  tex_log <- tex_build(tex_lines, stem, tex_message, ...)
237 237
238 238
  keep_log <- attr(tex_log,'error')
239 239
  
Files Coverage
R 49.87%
Project Totals (20 files) 49.87%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading