Skip to content

Undefined control sequence in rticles::tf_article output: when used with tinytex package  #246

@jooyoungseo

Description

@jooyoungseo

I cannot render an Rmd file using rticles::tf_article output format along with tinytex package.

Please help me with the issue using the following reproducible scripts:

tinytex:::is_tinytex()
#> [1] TRUE
options(tinytex.verbose = TRUE)

file <- rmarkdown::draft(
  "test", 
  "tf_article", 
  "rticles", 
  create_dir = TRUE, 
  edit = FALSE
)

rmarkdown::render(input = file, output_format = "rticles::tf_article")
#> processing file: test.Rmd
#> output file: test.knit.md
#> "C:/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.tex --template "C:\PROGRA~1\R\R-36~1.1\library\rticles\RMARKD~1\TEMPLA~1\TF_ART~1\RESOUR~1\template.tex" --highlight-style tango --pdf-engine pdflatex --natbib --lua-filter "C:/Program Files/R/R-3.6.1/library/rmarkdown/rmd/lua/pagebreak.lua"
#> ! Undefined control sequence.
#> <argument> C:\Users 
#>                     \JooYoung \AppData \Local \Temp \RtmpQ 1rEam\file 31143d...
#> l.381 ...l\Temp\RtmpQ1rEam\file31143d461174.pdf}}}
#>                                                   \hspace{5pt}
#> Error: Failed to compile test.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See test.log for more info.

Created on 2019-09-05 by the reprex package (v0.3.0.9000)

Session info
sessioninfo::session_info()
#> - Session info ----------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.6.1 (2019-07-05)
#>  os       Windows 10 x64              
#>  system   x86_64, mingw32             
#>  ui       RTerm                       
#>  language (EN)                        
#>  collate  English_United States.1252  
#>  ctype    English_United States.1252  
#>  tz       America/New_York            
#>  date     2019-09-05                  
#> 
#> - Packages --------------------------------------------------------------
#>  package     * version    date       lib
#>  assertthat    0.2.1      2019-03-21 [1]
#>  cli           1.1.0      2019-03-19 [1]
#>  crayon        1.3.4      2017-09-16 [1]
#>  digest        0.6.20     2019-07-04 [1]
#>  evaluate      0.14       2019-05-28 [1]
#>  highr         0.8        2019-03-20 [1]
#>  htmltools     0.3.6      2017-04-28 [1]
#>  knitr         1.24.4     2019-09-04 [1]
#>  magrittr      1.5        2014-11-22 [1]
#>  Rcpp          1.0.2.1    2019-08-08 [1]
#>  rmarkdown     1.15.1     2019-09-03 [1]
#>  rticles       0.10.1     2019-08-28 [1]
#>  sessioninfo   1.1.1      2018-11-05 [1]
#>  stringi       1.4.3      2019-03-12 [1]
#>  stringr       1.4.0.9000 2019-08-08 [1]
#>  tinytex       0.15.2     2019-09-03 [1]
#>  withr         2.1.2      2018-03-15 [1]
#>  xfun          0.9        2019-08-21 [1]
#>  yaml          2.2.0      2018-07-25 [1]
#>  source                            
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.1)                    
#>  Github (yihui/knitr@079dc84)      
#>  CRAN (R 3.6.1)                    
#>  Github (RcppCore/Rcpp@1789f09)    
#>  Github (rstudio/rmarkdown@ff285a0)
#>  Github (rstudio/rticles@989e18a)  
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.0)                    
#>  Github (hadley/stringr@0b90f91)   
#>  Github (yihui/tinytex@f8e025c)    
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.1)                    
#>  CRAN (R 3.6.0)                    
#> 
#> [1] C:/Program Files/R/R-3.6.1/library

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions