Skip to content

I got the expected output only once #1

@yvanw

Description

@yvanw

Hello,

I tried the code below, and R complained that pdflatex was not installed. I installed it via homebrew, and ran the command again. I got a nicely formatted table. Since then impossible to get the table again. In turn, write2html works as expected so I guess the problem is with pdflatex.
Am I missing something?
Best,
Yvan

library(arsenal)
library(magrittr)
data(mockstudy)

mockstudy %>% 
  head() %>% 
  knitr::kable() %>% 
  write2pdf("~/Downloads/test.pdf")


/usr/local/bin/pandoc +RTS -K512m -RTS test.pdf.utf8.md --to latex 
      --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash
      --output /Users/yvan/Downloads/test.pdf
      --template /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rmarkdown/rmd/latex/default-1.17.0.2.tex
      --highlight-style tango --pdf-engine pdflatex --variable graphics=yes
      --variable 'geometry:margin=1in' --variable 'compact-title:yes' 

Here is my ouput: test.pdf

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