2 Comments
Guest *CharlieC* @ 2012-04-09 03:02:54 originally posted:
Thanks, this worked for me, but with knit() instead of knit2pdf() shown above, letting pdflatex produce the final pdf from the tex. (It did seem to work using knit2pdf, but was generating an apparently inconsequential texi2dvi error message.) Note that the testing version of statet 3 gives the outlining functionality to .Rnw that statet 2 is missing (which seemed to be why Jenny was working from the Tex files). Anyway, great to know I can knit in statet!
Great. Thanks for the feedback! My guess was the same as what you described -- we should let Eclipse compile the tex document.
Originally posted on 2012-04-09 03:14:00
Guest *Roger Vilardaga* @ 2012-09-05 22:01:59 originally posted:
Hi, I'm really enjoying knitr and the markdown function you created for RStudio. However, I think I'm settling with Eclipse and StatEt since it seems a much stable IDE and seems ideal to work with projects. The problem is that I would like to use the R Markdown function with knitr. Sweaving is great to create the final product, but for quick and dirty documents, RMarkdown seems ideal. Is there any tutorial to install knitr and Markdown in StatEt that you know of? I've been looking around and I can't find anything with clear instructions. Knitr is amazing. Thanks for creating it.
Sorry, I'm not familiar with Eclipse and StatEt, and I suggest you contact the developers for this R Markdown feature. On my side, I can tell you it is extremely simple: it is nothing but a call knitr::knit2html('input.Rmd') and you will get the HTML output.
Originally posted on 2012-09-06 17:57:24
Guest *Roger Vilardaga* @ 2012-09-30 16:26:58 originally posted:
Thanks a lot for your reply. It was as simple as you said. Much appreciated.
Guest *Junyu Lee* @ 2012-06-25 12:03:41 originally posted:
Hello Yihui:
I'm learning R and find knitr package very useful. Thank you for you work. I tried to change theme but failed. Here is the output from Rstudio:
library(knitr)> library(highlight)> thm <- knit_theme$get("solarized-dark")Error in if (format == "latex") { : argument is of length zero
How am I going to fix this?
Thank you very much
Hi, you are not supposed to change the theme outside. You should do this inside an Rnw document. See https://github.com/yihui/knitr/blob/master/inst/examples/knitr-themes.Rnw for example.
Originally posted on 2012-06-25 14:54:57
Guest *Junyu Lee* @ 2012-06-25 15:46:48 originally posted:
Thank you very much. I'll give it a try. By the way, what theme did you use when you wrote "knitr Graphics Manual"? It looks pretty.
Another question, I found a video tutorial you posted about how to use knitr under Lyx. I didn't save it. Now I could not find it any more. Could you give the link?
Thanks again
Junyu
All source files are under https://github.com/yihui/knitr/tree/master/inst/examples so you should be able to figure it out.
The video is at http://yihui.name/knitr/demo/lyx/ but it is not quite useful. I'll do another one in the future.
Originally posted on 2012-06-25 17:16:50
访客 *Junyu Lee* @ 2012-06-25 22:10:50 写道:
谢谢。看见你用knitr写出来的东西,真的很漂亮,就想学,好奇心真是害人呀。
我这种不是统计和计算机专业的门外汉, 什么东西都得从头学。连github,Rnw这些词儿,都是这个周末才从google里学会的。所以做video 时,请稍微详细点儿,好多东西对你们来说是天经地义的事,对我们来说都得从头学。
遵旨!你看到的那个PDF手册是一种Tufte样式。初学者建议从Markdown学起,LaTeX的世界太暗黑了。我前些天在统计之都给了一个视频:http://cos.name/2012/06/reproducible-research-with-knitr/
——原帖发布于 2012-06-26 00:22:58
访客 *Junyu Lee* @ 2012-06-26 02:42:37 写道:
多谢指教。那个视频已经拜看过了,而且当天就现学现用。我在学怎样制作package,把自己常用的方程数据做成包。就用markdown 和knitr做了个读书笔记。真是很好学,也很好用,免去在Word里copy-paste的麻烦,也规整。其实
markdown + knitr 也够我用的,就是有点儿外貌控,既得陇复望蜀。现在该去google什么是Tufte样式了。再次感谢。
估计你外貌控的程度不及我,我是超级大外貌控……我简直是痛恨不整齐不漂亮的排版。
——原帖发布于 2012-06-26 04:45:56
Sign in to join the discussion
Sign in with GitHub