Let's consider very simple kable table for reproducible example:
df <- data.frame("X_1" = c(1, 2), "X_2" =c(3,4))
df <- kable(df, format = 'latex')
df
\begin{tabular}{r|r}
\hline
X\_1 & X\_2\\
\hline
1 & 3\\
\hline
2 & 4\\
\hline
\end{tabular}
Is there any possibility to have this file saved as .tex or .markdown ? I looked for function save_kable
but it seems that it only supports .png
, .pdf
or .jpeg
formats.