tag:blogger.com,1999:blog-6715598735361401237.post1626003144150699357..comments2023-07-23T13:34:48.842+02:00Comments on Gregor Gorjanc (gg): Using Sweave with LyX customisation scriptGorjanc Gregorhttp://www.blogger.com/profile/07815994784120702971noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6715598735361401237.post-43401245811629900782008-10-02T09:10:00.000+02:002008-10-02T09:10:00.000+02:00Hi Steve!If you can do the thing with the odfweave...Hi Steve!<BR/><BR/>If you can do the thing with the odfweave then there sure is a way to do it also with Sweave, but maybe the LyX side might be trickier.<BR/><BR/>I am guessing here, because you did not give an exact example! You have a file with a chunk of R code that creates a new file with n chunks of R code. But are you doing this "proliferation" step with odfweave or sweave? The problem with LyX might be the compilation feature of LyX - the weaving and compiling the LaTeX is done all in one way. However, you could use LyX to get the output with the temporary file. This can also be done from within the terminal. Please send me a reproducible so that we can be more exact!Gorjanc Gregorhttps://www.blogger.com/profile/07815994784120702971noreply@blogger.comtag:blogger.com,1999:blog-6715598735361401237.post-12168199057918891112008-10-02T08:58:00.000+02:002008-10-02T08:58:00.000+02:00... and one more thing, sorry to bother you, about...... and one more thing, sorry to bother you, about looping - <BR/>suppose I want to print out a long-ish set of analyses for each of the n variables in a list (some charts, some tables etc, for each of the vars.). using odfweave what I do is weave the loop once to produce an .odt file with n chunks of the odfWeave code for each of the n variables, and then weave that intermediary file again to get the final .odt file. But I don't know how to do this with lyx and Sweave. Is there any way to produce iterated commands?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6715598735361401237.post-27484768557209959882008-09-25T17:11:00.000+02:002008-09-25T17:11:00.000+02:00great, thanks, that works. sorry I missed the info...great, thanks, that works. sorry I missed the info in the paper.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6715598735361401237.post-80027116885401515912008-09-25T10:55:00.000+02:002008-09-25T10:55:00.000+02:00Hi Steve!As described in the R News paper, you can...Hi Steve!<BR><BR/>As described in the <A HREF="http://www.scribd.com/doc/2549493" REL="nofollow">R News paper</A>, you can see the R errors, if you start LyX directly from the terminal/console. Say if I have a file test.lyx then I would use:<BR><BR/><BR/>lyx test.lyx &<BR/><BR/><BR>Gorjanc Gregorhttps://www.blogger.com/profile/07815994784120702971noreply@blogger.comtag:blogger.com,1999:blog-6715598735361401237.post-33094954032708694162008-09-25T09:38:00.000+02:002008-09-25T09:38:00.000+02:00hi and thanks for your great work on Lyx/Sweave. I...hi and thanks for your great work on Lyx/Sweave. I am using your tools on ubuntu but would like to know what I need to do to see R error messages. The Lyx error messages when there is an R error are not much help. Is there a way to view the R error messages directly other than just pasting the code back into an R session?Anonymousnoreply@blogger.com