yonicd / texPreview

Compare 5f4bf30 ... +0 ... 36f0064

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

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
  

Learn more Showing 2 files with coverage changes found.

Changes in R/utils.R
-6
+6
Loading file...
Changes in R/tex_preview.R
-1
+1
Loading file...
Files Coverage
R -2.23% 49.87%
Project Totals (20 files) 49.87%
Loading