Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got the expected output only once #1

Open
yvanw opened this issue Oct 13, 2018 · 1 comment
Open

I got the expected output only once #1

yvanw opened this issue Oct 13, 2018 · 1 comment

Comments

@yvanw
Copy link

yvanw commented Oct 13, 2018

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

@gaborcsardi
Copy link

Hi, this is a read-only mirror of CRAN, please see the package authors in the DESCRIPTION file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants