Skip to content

Commit

Permalink
remove the pause commands from the batch file
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 11, 2017
1 parent bf4772f commit ad2e0fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ install_tinytex = function(force = FALSE, dir) {
'These messages can be ignored. When installation is complete, ',
'please restart ', if (Sys.getenv('RSTUDIO') != '') 'RStudio' else 'R', '.'
))
shell('echo | install-tl-windows.bat -profile=../texlive.profile', invisible = FALSE)
bat = readLines('install-tl-windows.bat')
# never PAUSE (no way to interactive with the Windows shell from R)
writeLines(
grep('^pause\\s*$', bat, ignore.case = TRUE, invert = TRUE, value = TRUE),
'install-tl-windows.bat'
)
shell('install-tl-windows.bat -profile=../texlive.profile', invisible = FALSE)
system2(
'TinyTeX\\bin\\win32\\tlmgr',
c('install', 'latex-bin', 'xetex', readLines('../pkgs-custom.txt'))
Expand Down

0 comments on commit ad2e0fa

Please sign in to comment.