I find it difficult to print a diacritics table through the knitr
and pandoc packages. I believe that the Name.md
file is created correctly, but gives me an error at the pandoc
level. What am I doing wrong? Without diacritics, it works great.
Here is an example and the steps that I follow:
Table replication in R
SampleTable <- data.frame(Nazov=c("Kratkodobé záväzky (TA)","Dlhodobé záväzky (LA)","Záväzky celkovo (TA)"))
I run a * .Rmd file to create a Name.md file
```{r, echo=FALSE, dpi=600, fig.width=12, fig.height=15, fig.cap="Finančná štruktúra"} print(xtable(SampleTable)) ```
Convert .md to .pdf
knit("Name.rmd") system(paste("pandoc -V geometry:margin=1in -o", "Report", ".pdf ", "Name", ".md", sep=""))
EDIT: error:
pandoc.exe: Cannot decode byte '\x20': Data.Text.Encoding.decodeUtf8: Invalid UTF-8 stream Warning message: running command 'pandoc -V geometry:margin=1in -oReport7.pdf ReportNew.md' had status 1
source share