Re: Weird space in Unicode (utf8)

2015-01-16 Thread Yihui Xie
-- Yihui Xie Web: http://yihui.name On Fri, Jan 16, 2015 at 11:59 AM, Liviu Andronic wrote: > On Fri, Jan 16, 2015 at 5:38 PM, Yihui Xie wrote: >> It is a known issue without a fix yet: >> http://comments.gmane.org/gmane.editors.lyx.devel/145465 >> > Have you checked if the

Re: Weird space in Unicode (utf8)

2015-01-16 Thread Yihui Xie
It is a known issue without a fix yet: http://comments.gmane.org/gmane.editors.lyx.devel/145465 Regards, Yihui -- Yihui Xie Web: http://yihui.name On Fri, Jan 16, 2015 at 10:27 AM, Xin Wu wrote: > > Hi, all, > I am using LyX 2.1.2.2 on Macbook pro for a Chinese report. I found

Re: WORKAROUND and BUG: Yosemite + LyX

2014-10-22 Thread Yihui Xie
I do not use Mac OS X very often (I use it mostly for testing purposes), so personally I do not care. It is easy to ditch Apple by myself, but not all Apple users :( (Same thing for Windows) Regards, Yihui -- Yihui Xie Web: http://yihui.name On Wed, Oct 22, 2014 at 11:47 AM, Liviu Andronic

Re: WORKAROUND and BUG: Yosemite + LyX

2014-10-22 Thread Yihui Xie
apply to all of them. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Wed, Oct 22, 2014 at 4:06 AM, Rainer M Krug wrote: > THis seems to be a problem with paths and environmental variables passed > to sub-processes (also mentiond on the R sig mac list): Yosemite seems >

Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Yes, please. Thanks! Regards, Yihui -- Yihui Xie Web: http://yihui.name On Tue, Apr 22, 2014 at 4:31 PM, Scott Kostyshak wrote: > On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak wrote: >> On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie wrote: >> >>> To LyX developers:

Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
if LyX can catch the stderr output when R fails and display the error message in the dialog. The default error message "An error occurred while running" is not informative. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Tue, Apr 22, 2014 at 12:50 PM, John Kane wrote: > Curren

Re: error in LyX with Turkish language using knitr

2013-08-30 Thread Yihui Xie
s-->Language-->Language package-->None. Without babel, it compiles fine. Regards, Yihui -- Yihui Xie Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, Aug 30, 2013 at 2:07 AM, Kizilkaya, Kadir [AN S] wrote: > Hi Scott, > &

Re: error in LyX with Turkish language using knitr

2013-08-29 Thread Yihui Xie
and also your session info in R: library(knitr) sessionInfo() system('pdflatex --version') Regards, Yihui -- Yihui Xie Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Aug 29, 2013 at 4:34 PM, Scott Kostyshak wrote: > O

Re: make graphic insert 100% textwidth default

2013-07-31 Thread Yihui Xie
One way to do that is to redefine \includegraphics (cf https://github.com/jgm/pandoc-templates/blob/master/default.latex). Regards, Yihui -- Yihui Xie Phone: 206-667-4385 Web: http://yihui.name Fred Hutchinson Cancer Research Center, Seattle On Wed, Jul 31, 2013 at 12:23 PM, Neal Becker wrote

Re: Problem using R's table package with knitr.

2013-06-04 Thread Yihui Xie
That is right. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Tue, Jun 4, 2013 at 8:49 AM, Liviu Andronic wrote: > On Tue, Jun 4, 2013 at 5:33 PM, John Kane wrote: >> Thanks

Re: Problem using R's table package with knitr.

2013-06-03 Thread Yihui Xie
But John needs the LaTeX table output in the next line of R code; include=FALSE will exclude everything in that chunk. Moving booktabs() to the previous chunk and using include=FALSE there will be fine. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of

Re: Problem using R's table package with knitr.

2013-06-03 Thread Yihui Xie
egards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Jun 3, 2013 at 1:38 PM, John Kane wrote: > > > ________ > From: Yihui Xie > To: John Kane > Cc: L

Re: Problem using R's table package with knitr.

2013-06-03 Thread Yihui Xie
Did you \usepackage{booktabs} in the preamble? That is what ?tables::booktabs says. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Jun 3, 2013 at 3:07 PM, John Kane wrote: > I

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
My suggestion is always ERT for R code chunks, because it is clean and easier to play with program code. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Apr 14, 2013 at 10:30 PM, Mark

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
and LyX if you use the knitr module instead of Sweave. See http://yihui.name/knitr/demo/externalization/ for examples, and http://yihui.name/knitr/demo/lyx/ for a video demo of knitr in LyX. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State

Re: kitr problem after R update.

2013-02-17 Thread Yihui Xie
You cannot use cm directly; you have to convert cm to in which should be trivial: 1in = 2.54cm. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Feb 17, 2013 at 11:53 AM, John Kane wrote

Re: kitr problem after R update.

2013-01-26 Thread Yihui Xie
itr.R from https://raw.github.com/yihui/lyx/master/scripts/lyxknitr.R and put it under ~/lyx/scripts/. After LyX 2.0.6 is out, you will not need it. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA O

Re: Problems with dcolumn package

2012-12-17 Thread Yihui Xie
bug #7741: http://www.lyx.org/announce/2_0_5.txt http://www.lyx.org/trac/ticket/7741 Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Dec 17, 2012 at 3:56 AM, José Luis Cañadas wrote

Re: Problems with dcolumn package

2012-12-16 Thread Yihui Xie
I'm sorry but what exactly was the problem? I can compile it without any problems in LyX, and here is a screenshot: http://imgur.com/bX7I7 Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA O

Re: Input an Sweave/knitr chunk via command sequence

2012-11-27 Thread Yihui Xie
Thanks, I'll keep that in mind. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Tue, Nov 27, 2012 at 12:21 PM, Scott Kostyshak wrote: > On Tue, Nov 27, 2012 at 12:44 PM, Yihui Xi

Input an Sweave/knitr chunk via command sequence

2012-11-27 Thread Yihui Xie
rl+Alt+I (the same shortcut as RStudio). Then we will be able to input this quickly: <<>>= # cursor moved here automatically @ Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA

Re: Having a problem including an AT, '@', in my output (Document module = Sweave)

2012-11-12 Thread Yihui Xie
verify this, you can try the knitr module after install.packages('knitr') in R, and @ will be there as expected. In case you are not aware of it, knitr is an alternative to Sweave (and I'm shamelessly advertising here). Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.

Re: Having a problem including an AT, '@', in my output (Document module = Sweave)

2012-11-12 Thread Yihui Xie
Could you attach a minimal real *.lyx file? I do not understand what "pseudo-html markup" means. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Nov 12, 2012 at 7:26 PM, M

Re: Lyx vs Kile

2012-11-05 Thread Yihui Xie
){0,2}sections, or \includegraphics{}. Everything is so clear. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Nov 5, 2012 at 1:29 PM, VA wrote: > I use Win7 with both LyX and TeXStu

Re: Knitr (Rnw) Rscript error log

2012-10-01 Thread Yihui Xie
That is something confused me as well. Here is a screenshot of what I was talking about: http://i.imgur.com/vkLhP.png It only sets the language of the GUI and will not affect the document itself. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics

Re: Knitr (Rnw) Rscript error log

2012-09-30 Thread Yihui Xie
LyX 2.0.5 for the bug fix. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Sep 30, 2012 at 5:06 PM, Michael Bach wrote: > On 9/30/12 10:51 PM, Yihui Xie wrote: >> >> You

Re: Knitr (Rnw) Rscript error log

2012-09-30 Thread Yihui Xie
You can make a copy of that document, delete everything in it, and only put a code chunk <<>>= sessionInfo() @ there and compile it. Then show us the results from sessionInfo(). Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics

Re: Knitr (Rnw) Rscript error log

2012-09-29 Thread Yihui Xie
skryptum.Rnw" "/var/folders/yx/tvnzczfx7c31c68jrddvlqgrgn/T/lyx_tmpdir.xJL523/lyx_tmpbuf3/""tex" UTF-8 "/Users/XYZ/Documents/..." I think that is Mac OS, although in the first email it was Windows 7. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web:

Re: Knitr (Rnw) Rscript error log

2012-09-29 Thread Yihui Xie
OS to test with. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sat, Sep 29, 2012 at 10:52 AM, Michael Bach wrote: > Just a quick follow-up. > > I gather from the log that R reads the fil

Re: Knitr (Rnw) Rscript error log

2012-09-26 Thread Yihui Xie
The first place to look at is View-->View Messages, as described in the troubleshooting section in Sweave manual (which applies to knitr as well): https://github.com/downloads/yihui/lyx/sweave.pdf Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statist

Re: wiki upload issues

2012-09-24 Thread Yihui Xie
the problem, but of course, the external file host has to be reliable... Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Sep 24, 2012 at 4:20 PM, Liviu Andronic wrote: > On Mon, Sep

Re: knitr (Rnw) module: \Sexpr in Inline Math

2012-08-16 Thread Yihui Xie
but knitr sees 0.5^{2 because } terminates the code. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Aug 16, 2012 at 2:33 PM, Michael Bach wrote: > On 8/16/2012 9:25 PM, Micha

Re: Sweave documents fail to compile under 2.03

2012-07-26 Thread Yihui Xie
ac OS, so it is difficult for me to reproduce the problem. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Jul 26, 2012 at 10:40 AM, Hobbs,Tom wrote: > Sorry--I thought the message I se

Re: Sweave documents fail to compile under 2.03

2012-07-26 Thread Yihui Xie
gue box instead of just showing the very vague message "An error occured while running Rscript --verbose..."? R errors are written to stderr, so in theory it should be possible. Thanks! Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics

Re: Sweave documents fail to compile under 2.03

2012-07-26 Thread Yihui Xie
Please read section 4 of the manual and report more information: https://github.com/downloads/yihui/lyx/sweave.pdf otherwise it is hard to know what is exactly is the "failure". Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State

Re: Using sweave/knitr in master and child documents

2012-07-20 Thread Yihui Xie
If that is the case, yes, you can use child documents. 2.0.x has significant improvements over 1.6.x in terms of Sweave/knitr support, so I strongly recommend you to upgrade. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University

Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
You are right. It will come back eventually. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Tue, Jul 17, 2012 at 5:42 PM, Murat Yildizoglu wrote: > Ok, reading the tikz discussion list

Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
ackage, is: install.packages( 'tikzDevice', repos='http://r-forge.r-project.org' ) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Tue, Jul 17, 2012 at 5:07 PM, Murat Yildizoglu wrote:

Re: Knitr chunks, how to insert them?

2012-07-16 Thread Yihui Xie
the manuals above :) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Jul 16, 2012 at 8:01 PM, Murat Yildizoglu wrote: > Hello, > > I am starting to test Knitr, since its possibi

Re: Using sweave/knitr in master and child documents

2012-07-16 Thread Yihui Xie
cannot be shared between them because they are in different workspaces. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Jul 16, 2012 at 7:43 AM, wrote: > Hi all- > > Can Lyx (v.

Re: Compiling pdf sometimes stops when child document has a different textclass

2012-06-12 Thread Yihui Xie
I do not know what exactly is the problem here, but one thing that might help a little bit is to update knitr to the latest version if you have not done so. Since v0.5, the tikz-to-pdf compilation will no longer hang forever. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name

Re: knitr problem with packageVersion R function

2012-06-02 Thread Yihui Xie
namespace base namespace:base with value function (x, ...) { y <- as.character(x) if (!length(y)) writeLines(gettext("<0 elements>")) else print(noquote(ifelse(is.na(y), NA_character_, sQuote(y))), ...) invisible(x) } Regards, Yihui -- Yihui Xie

Re: knitr problem with packageVersion R function

2012-06-02 Thread Yihui Xie
I cannot reproduce the problem. It compiles successfully with TeXLive 2011 under Ubuntu. Can anyone else reproduce it? Does this happen to packageVersion() only? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor

Re: LyX cannot handle '$' sign in Sweave code chunk

2012-06-01 Thread Yihui Xie
Please read the manual https://github.com/downloads/yihui/lyx/sweave.pdf to help you diagnose the problem; you should see the R error in the LyX messages. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall

Re: Error with Lyx 2.0.3 and Knitr

2012-06-01 Thread Yihui Xie
Please see https://github.com/downloads/yihui/lyx/sweave.pdf for how to diagnose the problem. We need more detailed information. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, May 30

Re: play sound when (lengthy) compilation finishes?

2012-05-03 Thread Yihui Xie
Or add a last code chunk in Sweave: <>= alarm() # equivalent to cat('\a') @ or use the twitteR pacakge to send yourself a twitter message when it is done... Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State Universi

Re: Sweave Snow Leopard and lyx 2.0

2012-03-04 Thread Yihui Xie
That is right. It is one thing in LyX that I most wanted to do, and I was quite happy that it was accepted. I no longer have to tell other users to use dark voodoos. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215

Re: Sweave Snow Leopard and lyx 2.0

2012-03-04 Thread Yihui Xie
I think LyX 2.0.3 looks good now. The Sweave manual is accessible via Help=>Specific Manuals. The LyX wiki has been updated as well. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri,

Re: need working example of copier to customize pdf output

2012-02-25 Thread Yihui Xie
ne on demand, instead of each time you export PDF from LyX. Or if you like point-and-click, you can make a pdfnup22.sh in your directory and change its mode to be executable; then each time you want to convert the slides, just click it and you are done. Regards, Yihui -- Yihui Xie Phone: 515-294-246

Re: Recommended third-party tools

2012-02-20 Thread Yihui Xie
ting, highlighting, caching, fine control of graphics, conditional evaluation, multiple markup formats and other features. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Feb 20, 2012 at 12:

Re: Recommended third-party tools

2012-02-19 Thread Yihui Xie
Liviu, This is really great news! I've been longing for such a PPA. Thanks! Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Feb 19, 2012 at 12:48 PM, Liviu Andronic wrote: >

Re: Free software writing appliance -- email clients

2012-02-18 Thread Yihui Xie
Yes, LyX + R is really powerful. I have been thinking of making a video on this topic, but have not got time so far. BTW, I just noticed someone had updated the wiki page about Sweave to reflect changes in LyX 2.0. I really appreciate it. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web

Re: Recommended third-party tools

2012-02-18 Thread Yihui Xie
executing code (R code in this case). Just my 2 cents. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA

Re: Why do YOU love LyX?

2012-02-18 Thread Yihui Xie
Yes, that is it!! Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sat, Feb 18, 2012 at 6:31 AM, Christopher Menzel wrote: > Am Feb 18, 2012 um 12:28 PM schrieb Russell D Brune

Re: Compile error File does not exist: /var/folders

2012-02-08 Thread Yihui Xie
Yes, this sounds like a problem specific to a particular file (then it will be even harder for me to diagnose). Does that one produce figures from R? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames

Re: Compile error File does not exist: /var/folders

2012-02-08 Thread Yihui Xie
Can you also attach a copy of the script /Applications/LyX.app/Contents/Resources/scripts/lyxsweave.R ? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Feb 8, 2012 at 4:06 PM, Graham

Re: Compile error File does not exist: /var/folders

2012-02-08 Thread Yihui Xie
Sweave module in LyX? What are the first few lines of messages when you compile the document? (View-->View Messages) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Feb 8, 2012 at 3:02

Re: Compile error File does not exist: /var/folders

2012-02-08 Thread Yihui Xie
OK, then the question is where is this file. Can you try to compile the document again, and search for that R-GettingStarted.pdf? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Feb 8

Re: Compile error File does not exist: /var/folders

2012-02-08 Thread Yihui Xie
This sounds hard to diagnose... Does that file really exist or not? Can you go and check in that folder? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Feb 8, 2012 at 2:20 PM, Graham

Re: Compile error File does not exist: /var/folders

2012-02-08 Thread Yihui Xie
Which version of R are you using? Does it work when you add this to your document as TeX code (Insert-->TeX Code)? \SweaveOpts{prefix=TRUE,prefix.string=sweave-figure} Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2

Re: Captions at top of tables

2012-01-12 Thread Yihui Xie
Have you read the recent manual? There is an example for creating tables in Sweave (PDF version at https://github.com/downloads/yihui/lyx/sweave.pdf; lyx source is shipped with LyX 2.0.2 and also available at https://github.com/yihui/lyx/raw/master/examples/sweave.lyx) Regards, Yihui -- Yihui Xie

Re: Locale configuration when launching R from lyx

2011-12-04 Thread Yihui Xie
The correct fix, I believe, is to set the language of your interface (not document) to Default in preferences. This will at least enable R to read the Rnw document correctly. Then everything becomes a LaTeX problem (you can use other special packages, or xelatex). Regards, Yihui -- Yihui Xie

Re: 2.0.2 and sweave

2011-12-04 Thread Yihui Xie
That is good to know. Thanks a lot for the experiment! I need to add this approach to the manual; it is much easier (and safer) than messing with the PATH variable directly. I often feel extremely frustrated with instructing Windows users on how to modify PATH. Regards, Yihui -- Yihui Xie Phone

Re: 2.0.2 and sweave

2011-12-04 Thread Yihui Xie
from the Windows Registry Hive). Before that, users still have to modify the PATH by themselves. Or maybe it is easier to modify the preferences? Tools-->Preferences-->Paths-->PATH prefix. I have never tried it. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name

Re: 2.0.2 and sweave

2011-12-04 Thread Yihui Xie
We need someone to update the wiki pages (I'm quite busy these days); currently you should refer to the manual built-in with LyX (examples/sweave.lyx), and a PDF version is here: https://github.com/downloads/yihui/lyx/sweave.pdf Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web:

Re: LyX/Sweave on windows 7

2011-11-04 Thread Yihui Xie
FWIW, here is the repository for the R batchfiles: http://code.google.com/p/batchfiles/ I'm not familar with Python, and I hope this could be helpful to our potential Python hackers. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa

Re: LyX/Sweave on windows 7

2011-11-03 Thread Yihui Xie
rds, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Nov 3, 2011 at 12:25 PM, Bruce Kendall wrote: > This is a solution rather than a question.  I am running Windows 7 Enterprise > (V. 6.1,

Re: Bold text from Sweave chunk

2011-10-13 Thread Yihui Xie
You have to tell us how or what on earth you cat()ed. I do not think you need R tricks (are you talking about the tricks in demo(plotmath)?). I believe something like this should work: <>= cat('\\textbf{abc}') @ Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui

Re: Wrapping text for R commands in Sweave

2011-10-11 Thread Yihui Xie
hich means there are no carriage returns in the long lines of R code). Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Tue, Oct 11, 2011 at 11:17 AM, Shane Siers wrote: > Alas, I have kee

Re: Wrapping text for R commands in Sweave

2011-10-11 Thread Yihui Xie
). Or you set \SweaveOpts{keep.source=TRUE} to tell Sweave not to "reshape" your R code. 2. You need to customize sweave.module (the font size of R code is defined there). Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State Univ

Re: Generating paragraphs in loops

2011-10-07 Thread Yihui Xie
Use the chunk option results=tex, then use cat() in your R code to output the paragraphs like <>= for(i in 1:10) { cat('now the value of i is ', i, '\n\n') } @ Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa Stat

Re: LyX2.0 and Sweave - No Output

2011-10-05 Thread Yihui Xie
member exactly). We have solved this headache that tons of users have run into in LyX 2.0.1, but currently there is no official release for Windows yet. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames,

Re: lyx2 and sweave

2011-10-03 Thread Yihui Xie
Isn't this another case of the bug http://www.lyx.org/trac/ticket/7741 ? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Oct 3, 2011 at 9:40 AM, Jean-Marc Lasgouttes wrote: >

Re: Does Sweave work for LyX 2.13 on Windows 7

2011-09-21 Thread Yihui Xie
What exactly do you mean by "does not work"? As a first step, can you add the Sweave module to a LyX document? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Sep 21, 2011

Re: Sweave in french with Latex

2011-09-10 Thread Yihui Xie
OK. I believe this is exactly the bug I reported at http://www.lyx.org/trac/ticket/7741 A temporary solution is to change your UI language to default instead of French (see http://www.lyx.org/trac/ticket/7741#comment:2) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name

Re: Sweave in french with Latex

2011-09-08 Thread Yihui Xie
LyX 2.0 (or the latest 2.0.1) should do reasonably well in handling different languages. As the first step to diagnose your problem, could you please post the debug messages? (You can find them under the menu View-->View messages) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: h

Re: Sweave Snow Leopard and lyx 2.0

2011-09-02 Thread Yihui Xie
You are absolutely right -- too many instructions around. I wished I could make a comprehensive documentation of Sweave in LyX, but did not manage to do it before LyX 2.0.1. Perhaps we can do it in 2.0.2... Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of

Re: Sweave Snow Leopard and lyx 2.0

2011-08-23 Thread Yihui Xie
ll be copied from R if LyX cannot see it. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Aug 21, 2011 at 4:58 AM, Graham Smith wrote: > With  a follow up to a follow up, > > >&g

Re: Question on using Lyx 2.0 with Sweave for R 2.13.0

2011-07-13 Thread Yihui Xie
es are you have another Rscript.exe or Rscript.bat elsewhere. We have got too many instructions on how to configure Sweave with LyX in the past (now I kind of regret doing this). Hopefully we can get rid of all these long instructions one day. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: ht

Re: Question on using Lyx 2.0 with Sweave for R 2.13.0

2011-07-13 Thread Yihui Xie
o manually define these converters, but I do not want to mess up with your LyX configurations. You may come back to me if you really cannot solve the problem. BTW, are you sure the bin path of R is in your PATH? try this in a command window (Start-->Run; cmd): Rscript --version Regards, Yihui

Re: Question on using Lyx 2.0 with Sweave for R 2.13.0

2011-07-13 Thread Yihui Xie
Is there a converter from Sweave to LaTeX? Check it in the menu Tools-->Preferences-->Converters. Normally you should have at least four converters from Sweave to different types of LaTeX output. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Stat

Re: Bizarre R (TSA package) + Sweave LaTeX error

2011-06-28 Thread Yihui Xie
nge the title, e.g. prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF', main = 'no special characters here') 2. use sanitize=TRUE in your chunk options (so that & will be replaced by \&); see ?sanitizeTexString in the tikzDevice package for details Regards, Yih

Re: 关于首行标点的求助

2011-06-19 Thread Yihui Xie
veral lines -- LyX treats this paragraph as if it had three words so the space will be extremely wide. But again, this is no big deal, since we can use inter-word spaces "\ " instead of ordinary spaces " " to make the document look better (inter-word spaces do not get stretched). Re

Re: LyX2 R sweave

2011-06-19 Thread Yihui Xie
I guess this converter needs Rscript to be in your PATH variable. Furthermore, you'd better put Sweave.sty in your texmf tree. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, J

Re: Error with Lyx 2.0 and Sweave

2011-06-13 Thread Yihui Xie
ence of "--args" will make ls.args[4] to be ISO-8859-15, which is obviously not a directory name. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Tue, Jun 7, 2011 at 6:22 AM, Franz Jimeno

Re: lyx2 and sweave

2011-06-04 Thread Yihui Xie
cument settings, but I don't know which encoding is "correct" for German. What was the error message (View-->View Messages) in R? (not warnings) Did it say something like iconv() failed? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Stati

Re: Chinese document compilation

2011-06-01 Thread Yihui Xie
I would recommend you to look at the LaTeX source (View --> View Source) in that buggy chapter too. I feel it might be due to the encoding or language setting (are you sure it is also UTF8 and the language setting is Chinese?) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: h

Re: R Gaphics for Lyx

2011-05-29 Thread Yihui Xie
OK, I see. Thanks! Both qpdf or pdftk can be used to compress PDF files. It is still unclear to me which one is better. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, May 30, 2011 at

Re: R Gaphics for Lyx

2011-05-29 Thread Yihui Xie
now (the option --compact-vignettes in R CMD build). Graham, is your script portable to Windows and Mac? Could you share it with us? Maybe we can propose this feature to LyX developers. It will be definitely helpful. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Departmen

Re: SWeave chunk in enumerate \item? + pgfSweave?

2011-05-22 Thread Yihui Xie
\begin{Scode}{}) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, May 22, 2011 at 6:57 PM, Lucas wrote: > Yihui Xie yihui.name> writes: > >> >> Hi, >> >> I think

Re: SWeave chunk in enumerate \item? + pgfSweave?

2011-05-22 Thread Yihui Xie
characters before <<. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, May 22, 2011 at 9:55 AM, Lucas wrote: > Is it possible to have a SWeave chunk inside an enumerate \item?  

Re: Lyx 2.0 Sweave Error

2011-05-18 Thread Yihui Xie
Hi Amy, It will help a lot if you can post the detailed message when you ran Sweave in LyX. You can turn on the message panel by the menu View-->View messages, then take a look at the log message there. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department

Re: Error in Lyx Sweave (Noweb)

2011-05-13 Thread Yihui Xie
t;Preferences-->Paths-->Temporary directory. You need to restart LyX after modifying this setting and make sure the directory exists. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, May

Re: Error in Lyx Sweave (Noweb)

2011-05-13 Thread Yihui Xie
gram Files\LyX20\Resources\examples). Sweave no longer depends on specific layouts. This is a significant change in LyX 2.0. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, May 12, 2011

Re: How to remove the path prefix before image files?

2009-12-08 Thread Yihui Xie
gures produced by the code. Regards, Yihui On Tue, Dec 8, 2009 at 6:57 PM, Vincent van Ravesteijn wrote: > Yihui Xie schreef: >> >> Hi, >> >> When we insert a graph into a Lyx document, say, test.pdf, and compile >> the lyx document using pdfLaTeX, Lyx will first copy

How to remove the path prefix before image files?

2009-12-08 Thread Yihui Xie
E:/user/document/). My question is, how to let Lyx copy the file without changing its name? Thanks! Regards, Yihui -- Yihui Xie Phone: 515-294-6609 Web: http://yihui.name Department of Statistics, Iowa State University 3211 Snedecor Hall, Ames, IA

Re: How to copy required files into the temporary directory?

2009-09-16 Thread Yihui Xie
Yihui -- Phone: 515-294-6609 Web: http://yihui.name Department of Statistics, Iowa State University 3211 Snedecor Hall, Ames, IA On Wed, Sep 16, 2009 at 10:10 AM, rgheck wrote: > On 09/16/2009 12:36 AM, Yihui Xie wrote: >> >> Thanks! Yes the file name is annoying. What's

Re: How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
Thanks! Yes the file name is annoying. What's more, Lyx will use a different temp directory each time, so it's difficult to copy the files to the temp directory by hand, as I don't know the destination. Regards, Yihui -- Yihui Xie Phone: 515-294-6609 Web: http://yihui.nam

How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
Hi all, I'm using a LaTeX package that will include certain files into the document, however, Lyx does not know these files are required for compiling, because they are not included with standard LaTeX macros (e.g. \includegraphics{}). So my question is, how to copy these files into the temporary