如何直接查看xtable结果到乳胶 [英] how to see xtable results directly to latex

查看:36
本文介绍了如何直接查看xtable结果到乳胶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在R环境中有这样的东西

I have something like this in my R environment

myoutput <-  xtable(mtcars)

并且我想在乳胶中自动查看更新的 myoutput ,这可能吗?

and i want to see the updated myoutput in latex automatically, is this possible?

非常感谢,

推荐答案

您可以使用 texPreview 包.

library(xtable)
library(texPreview)

LaTeX <- xtable(mtcars)
tex_preview(LaTeX)

此代码在RStudio查看器中显示LaTeX表.

This code displays the LaTeX table in the RStudio viewer.

这篇关于如何直接查看xtable结果到乳胶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆