6 Comments
Guest *Sebastian Campbell* @ 2012-08-06 02:15:18 originally posted:
Hmm, I get that a chunk in an R file starting with "## @knitr " is read in with read_chunk(), I'm not clear on how such a chunk is ended. Does it simply end when another chunk begins?
Yes.
Originally posted on 2012-08-06 05:33:33
Guest *ADP* @ 2012-11-14 15:39:29 originally posted:
Can someone help me out?
I'm getting an interesting problem, I need to create some plots for my Thesis, my thesis consists of a master document and a series of chapters which are referenced in the master document.
If I plot using ggplot2 directly in the master document file, the plots show up fine in the output PDF, howerver, if the same code is placed in the chapter file and called inside the master document file (via includes{chapterfile}) then all that is outputed to the pdf is the actual plotting code as it appears in the chapter file.
No graphics are exported / created in the latter.LaTeX environment is accessed via Texmaker.
include{} is a LaTeX command, and knitr does not recognize it; if you have child documents such as chapters, use the chunk option 'child' to compile them: http://yihui.name/knitr/demo/child/
Originally posted on 2012-11-14 20:06:36
Guest *ADP* @ 2012-11-15 00:50:58 originally posted:
Funny, after spending over an hour on it, I worked it out 30 seconds after posting my original comment, and couldn't find where I had actually posted it. This thread probably isn't the appropriate place to discuss this matter. Anyway, thanks, It works perfectly now, although on a side-note, the tree hierarchy (it used to detect the .Tex files in the Structure window) in Texmaker no longer works, which is a minor concern and something that I can live with. The fact that I can execute R commands inside LaTeX environment, getting direct access to the graphics is wonderful. I must have spent countless hours trying to get Sweave working, there was always some problem, on the other hand, Knitr effectively worked first go. Cheers.
Guest *Jitao David Zhang* @ 2013-03-14 08:06:46 originally posted:
Cool staff. Thanks very much, Yihui!
Guest *Craig* @ 2013-04-12 06:49:18 originally posted:
Hi Yihui,
Any idea why i am getting this message while running knit2pdf on Mac OS X?
"Warning: running command 'kpsewhich framed.sty' had status 1"
I have added /usr/texbin to PATH variable but I still get this message. Also, is there a way for me to supress this warning? I have already set opts_knit$set(Progress = FALSE, verbose = FALSE), but I still get this message.
Thanks for your help
So what does kpsewhich framed.sty return in the terminal? I do not have access to Mac OS X.
Originally posted on 2013-04-12 19:10:34
Guest *Daniel Cher* @ 2014-04-16 18:25:08 originally posted:
Hi, all. Instead of using Sexpr, I'd like to use something different, like to do inline code. Not quite sure how to make this happen.
See ?knit_patterns and the R source code on Github. I do not recommend you to change the default syntax, though.
Originally posted on 2014-04-17 04:55:47
Guest *Daniel Cher* @ 2014-04-17 13:11:21 originally posted:
Thanks for the reply. You are right... I won't do ths.
Guest *Wenbo Ma* @ 2014-10-29 18:58:25 originally posted:
Hi Yihui, I think I have a question for knit or the new version of RStudio. In the new version, when I compile the R Markdown file with knit HTML button, there is no html pop up again (I mean a new window pop up again as what we have in the old version of RStudio). The only thing I get right now is a reminder saying there is an output at .... and a small viewer on the right hand side. Can we change some settings to make a new window (full screen) pop up every time we click the "knit the html" button. Thank you very much.
Open the drop-down menu behind the Knit HTML button and choose to show the output in the window instead of the viewer pane.
Originally posted on 2014-11-02 02:09:03
Sign in to join the discussion
Sign in with GitHub