Code:
\documentclass{article}
\usepackage{longtable}
\usepackage[a4paper,margin=0.5in,landscape]{geometry}
\begin{document}
<<results='asis'>>=
i <- 1
while (i <= ncol(p_vec)) {
library(xtable)
xt = xtable(p_vec[,i:(i+8)])
i <- i + 9
print(xt,
tabular.environment = "longtable",
floating = FALSE
)
}
@
\end{longtable}
\end{document}
Error:
Writing to file knitr_large_table.tex
Processing code chunks with options ...
Error in match.arg(options$results, c("verbatim", "tex", "hide")) :
'arg' should be one of “verbatim”, “tex”, “hide”
Calls: <Anonymous> -> SweaveParseOptions -> check -> match.arg
Execution halted
Fix:
In RStudio
Tools -> Global Options
Sweave
Weave Rnw files using knitr
Errors when Compile PDF on *.rnw in RStudio
Advertisemen
Advertisemen
Tidak ada komentar:
Posting Komentar