Can't View Splash.lyx

2013-02-17 Thread BooBoo
I have successfully installed Lyx on two Windows 7 64-bit computers. Now 
I have a new installation of Lyx 2.0.5.1 on a Windows 8 64-bit computer 
with MikTex 2.9. When I try to view the splash.lyx example with Ctrl-R I 
get an error: LaTeX Error: Cannot determine the size of the graphic. 
It does not like the little eyeballs in the third item in splash.lyx. I 
deleted the eyeballs and then I get another error: LyX Cannot view your 
file, File dose not exist. Other preview options like PDF (ps2pdf) work 
fine. Any suggestions on what is wrong with the LyX setup?


Tom


Re: kitr problem after R update.

2013-02-17 Thread John Kane
Hi,

Thanks for this and my appologies for taking so long to get back to you.

I was so frustrated with my LyX/apa6/biblatex problems that I just stopped even 
trying to get it to work and got on with other things.  

I made the simple height to fig.height, etc change and it seems to work just 
fine now.  

My lack of LaTeX knowledge plus my inability to actually comprehend much of the 
knitr/Sweave material due to lack of experiencc with them is sometimes 
maddening.

How do I set fig.height and fig.width in cm?  It appears to me that the default 
is inches? 

Thanks again.







 From: Yihui Xie x...@yihui.name
To: John Kane jrkrid...@yahoo.ca 
Cc: Lyx List lyx-users@lists.lyx.org; René Mayer murakamicatpo...@gmx.de 
Sent: Saturday, January 26, 2013 1:30:35 PM
Subject: Re: kitr problem after R update.
 
Please see the NEWS for knitr 1.0 (now 1.0.5):
https://github.com/yihui/knitr/blob/master/NEWS.md#changes-in-knitr-version-10
Sweave2knitr() is a function in knitr instead of an executable in your
Ubuntu system: http://yihui.name/knitr/demo/sweave/

In your case, the chunk options height=4cm, width=4cm are invalid;
please read the documentation for chunk options:
http://yihui.name/knitr/options On one hand, there are no options
called height and width (only fig.height/fig.width or
out.height/out.width); on the other, 4cm is not a valid R object.

To René Mayer: you also had problems after upgrading knitr, but you
did not show me examples, so I have to guess - maybe you had some
non-ASCII characters in your document, and knitr 1.0 added encoding
support; I have submitted a patch to LyX accordingly:
http://www.lyx.org/trac/ticket/8504 For now, you can download the new
lyxknitr.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 xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sat, Jan 26, 2013 at 9:35 AM, John Kane jrkrid...@yahoo.ca wrote:
 I had thought that I had apa6 working nicely (I think I was wrong) and
 decided to have a go at comgining it with knitr.

 I successfully embedded an inline statement, then created both a table and a
 figure. (see attached file).
 Both were running fine untill I updated R yesterday

 I'm suddenly getting the error It seems you are using the Sweave-specific
 sntsx; you may need to run 'Sweave2knitr('basic.knitr.attempt1.Rnw')'

 This gives the error :
 john@john-K53U:~/Lyx$ Sweave2knitr('basic.knitr.attempt1.Rnw')
 bash: syntax error near unexpected token `'basic.knitr.attempt1.Rnw''

 I got this with a slightly larger file where I was working with the document
 class apa6 and knitr so for simplicity  I striped my example down to this so
 it appears it is knitr error and not something I have done playing with
 settings to get apa6 and biblatex to work

 What stupid error am I making now?  Or do I just have to update things?

 If this is the wrong mailing list can anyone point me in the right
 direction?
 Thanks

 LyX 2.0.4

 R info
 R version 2.15.2 (2012-10-26)
 Platform: i686-pc-linux-gnu (32-bit)

 locale:
  [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8
  [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8
  [7] LC_PAPER=C                 LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
 [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C

 attached base packages:
 [1] grid      stats     graphics  grDevices utils     datasets  methods
 base

 other attached packages:
 [1] lubridate_1.2.0    directlabels_2.9   RColorBrewer_1.0-5 gridExtra_0.9.1
 [5] stringr_0.6.2      scales_0.2.3       plyr_1.8           reshape2_1.2.2
 [9] ggplot2_0.9.3

 loaded via a namespace (and not attached):
 [1] colorspace_1.2-1 dichromat_2.0-0  digest_0.6.1     gtable_0.1.2
 [5] labeling_0.1     MASS_7.3-23      munsell_0.4      proto_0.3-10
 [9] tools_2.15.2


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 xieyi...@gmail.com
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 jrkrid...@yahoo.ca wrote:
 Hi,

 Thanks for this and my appologies for taking so long to get back to you.

 I was so frustrated with my LyX/apa6/biblatex problems that I just stopped
 even trying to get it to work and got on with other things.

 I made the simple height to fig.height, etc change and it seems to work just
 fine now.

 My lack of LaTeX knowledge plus my inability to actually comprehend much of
 the knitr/Sweave material due to lack of experiencc with them is sometimes
 maddening.

 How do I set fig.height and fig.width in cm?  It appears to me that the
 default is inches?

 Thanks again.



Can't View Splash.lyx

2013-02-17 Thread BooBoo
I have successfully installed Lyx on two Windows 7 64-bit computers. Now 
I have a new installation of Lyx 2.0.5.1 on a Windows 8 64-bit computer 
with MikTex 2.9. When I try to view the splash.lyx example with Ctrl-R I 
get an error: LaTeX Error: Cannot determine the size of the graphic. 
It does not like the little eyeballs in the third item in splash.lyx. I 
deleted the eyeballs and then I get another error: LyX Cannot view your 
file, File dose not exist. Other preview options like PDF (ps2pdf) work 
fine. Any suggestions on what is wrong with the LyX setup?


Tom


Re: kitr problem after R update.

2013-02-17 Thread John Kane
Hi,

Thanks for this and my appologies for taking so long to get back to you.

I was so frustrated with my LyX/apa6/biblatex problems that I just stopped even 
trying to get it to work and got on with other things.  

I made the simple height to fig.height, etc change and it seems to work just 
fine now.  

My lack of LaTeX knowledge plus my inability to actually comprehend much of the 
knitr/Sweave material due to lack of experiencc with them is sometimes 
maddening.

How do I set fig.height and fig.width in cm?  It appears to me that the default 
is inches? 

Thanks again.







 From: Yihui Xie x...@yihui.name
To: John Kane jrkrid...@yahoo.ca 
Cc: Lyx List lyx-users@lists.lyx.org; René Mayer murakamicatpo...@gmx.de 
Sent: Saturday, January 26, 2013 1:30:35 PM
Subject: Re: kitr problem after R update.
 
Please see the NEWS for knitr 1.0 (now 1.0.5):
https://github.com/yihui/knitr/blob/master/NEWS.md#changes-in-knitr-version-10
Sweave2knitr() is a function in knitr instead of an executable in your
Ubuntu system: http://yihui.name/knitr/demo/sweave/

In your case, the chunk options height=4cm, width=4cm are invalid;
please read the documentation for chunk options:
http://yihui.name/knitr/options On one hand, there are no options
called height and width (only fig.height/fig.width or
out.height/out.width); on the other, 4cm is not a valid R object.

To René Mayer: you also had problems after upgrading knitr, but you
did not show me examples, so I have to guess - maybe you had some
non-ASCII characters in your document, and knitr 1.0 added encoding
support; I have submitted a patch to LyX accordingly:
http://www.lyx.org/trac/ticket/8504 For now, you can download the new
lyxknitr.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 xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sat, Jan 26, 2013 at 9:35 AM, John Kane jrkrid...@yahoo.ca wrote:
 I had thought that I had apa6 working nicely (I think I was wrong) and
 decided to have a go at comgining it with knitr.

 I successfully embedded an inline statement, then created both a table and a
 figure. (see attached file).
 Both were running fine untill I updated R yesterday

 I'm suddenly getting the error It seems you are using the Sweave-specific
 sntsx; you may need to run 'Sweave2knitr('basic.knitr.attempt1.Rnw')'

 This gives the error :
 john@john-K53U:~/Lyx$ Sweave2knitr('basic.knitr.attempt1.Rnw')
 bash: syntax error near unexpected token `'basic.knitr.attempt1.Rnw''

 I got this with a slightly larger file where I was working with the document
 class apa6 and knitr so for simplicity  I striped my example down to this so
 it appears it is knitr error and not something I have done playing with
 settings to get apa6 and biblatex to work

 What stupid error am I making now?  Or do I just have to update things?

 If this is the wrong mailing list can anyone point me in the right
 direction?
 Thanks

 LyX 2.0.4

 R info
 R version 2.15.2 (2012-10-26)
 Platform: i686-pc-linux-gnu (32-bit)

 locale:
  [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8
  [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8
  [7] LC_PAPER=C                 LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
 [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C

 attached base packages:
 [1] grid      stats     graphics  grDevices utils     datasets  methods
 base

 other attached packages:
 [1] lubridate_1.2.0    directlabels_2.9   RColorBrewer_1.0-5 gridExtra_0.9.1
 [5] stringr_0.6.2      scales_0.2.3       plyr_1.8           reshape2_1.2.2
 [9] ggplot2_0.9.3

 loaded via a namespace (and not attached):
 [1] colorspace_1.2-1 dichromat_2.0-0  digest_0.6.1     gtable_0.1.2
 [5] labeling_0.1     MASS_7.3-23      munsell_0.4      proto_0.3-10
 [9] tools_2.15.2


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 xieyi...@gmail.com
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 jrkrid...@yahoo.ca wrote:
 Hi,

 Thanks for this and my appologies for taking so long to get back to you.

 I was so frustrated with my LyX/apa6/biblatex problems that I just stopped
 even trying to get it to work and got on with other things.

 I made the simple height to fig.height, etc change and it seems to work just
 fine now.

 My lack of LaTeX knowledge plus my inability to actually comprehend much of
 the knitr/Sweave material due to lack of experiencc with them is sometimes
 maddening.

 How do I set fig.height and fig.width in cm?  It appears to me that the
 default is inches?

 Thanks again.



Can't View Splash.lyx

2013-02-17 Thread BooBoo
I have successfully installed Lyx on two Windows 7 64-bit computers. Now 
I have a new installation of Lyx 2.0.5.1 on a Windows 8 64-bit computer 
with MikTex 2.9. When I try to view the splash.lyx example with Ctrl-R I 
get an error: "LaTeX Error: Cannot determine the size of the graphic". 
It does not like the little eyeballs in the third item in splash.lyx. I 
deleted the eyeballs and then I get another error: "LyX Cannot view your 
file, File dose not exist". Other preview options like PDF (ps2pdf) work 
fine. Any suggestions on what is wrong with the LyX setup?


Tom


Re: kitr problem after R update.

2013-02-17 Thread John Kane
Hi,

Thanks for this and my appologies for taking so long to get back to you.

I was so frustrated with my LyX/apa6/biblatex problems that I just stopped even 
trying to get it to work and got on with other things.  

I made the simple height to fig.height, etc change and it seems to work just 
fine now.  

My lack of LaTeX knowledge plus my inability to actually comprehend much of the 
knitr/Sweave material due to lack of experiencc with them is sometimes 
maddening.

How do I set fig.height and fig.width in cm?  It appears to me that the default 
is inches? 

Thanks again.







 From: Yihui Xie 
To: John Kane  
Cc: Lyx List ; René Mayer  
Sent: Saturday, January 26, 2013 1:30:35 PM
Subject: Re: kitr problem after R update.
 
Please see the NEWS for knitr 1.0 (now 1.0.5):
https://github.com/yihui/knitr/blob/master/NEWS.md#changes-in-knitr-version-10
Sweave2knitr() is a function in knitr instead of an executable in your
Ubuntu system: http://yihui.name/knitr/demo/sweave/

In your case, the chunk options "height=4cm, width=4cm" are invalid;
please read the documentation for chunk options:
http://yihui.name/knitr/options On one hand, there are no options
called height and width (only fig.height/fig.width or
out.height/out.width); on the other, 4cm is not a valid R object.

To René Mayer: you also had problems after upgrading knitr, but you
did not show me examples, so I have to guess - maybe you had some
non-ASCII characters in your document, and knitr 1.0 added encoding
support; I have submitted a patch to LyX accordingly:
http://www.lyx.org/trac/ticket/8504 For now, you can download the new
lyxknitr.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


On Sat, Jan 26, 2013 at 9:35 AM, John Kane  wrote:
> I had thought that I had apa6 working nicely (I think I was wrong) and
> decided to have a go at comgining it with knitr.
>
> I successfully embedded an inline statement, then created both a table and a
> figure. (see attached file).
> Both were running fine untill I updated R yesterday
>
> I'm suddenly getting the error "It seems you are using the Sweave-specific
> sntsx; you may need to run 'Sweave2knitr('basic.knitr.attempt1.Rnw')'
>
> This gives the error :
> john@john-K53U:~/Lyx$ Sweave2knitr('basic.knitr.attempt1.Rnw')
> bash: syntax error near unexpected token `'basic.knitr.attempt1.Rnw''
>
> I got this with a slightly larger file where I was working with the document
> class apa6 and knitr so for simplicity  I striped my example down to this so
> it appears it is knitr error and not something I have done playing with
> settings to get apa6 and biblatex to work
>
> What stupid error am I making now?  Or do I just have to update things?
>
> If this is the wrong mailing list can anyone point me in the right
> direction?
> Thanks
>
> LyX 2.0.4
>
> R info
> R version 2.15.2 (2012-10-26)
> Platform: i686-pc-linux-gnu (32-bit)
>
> locale:
>  [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C
>  [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8
>  [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8
>  [7] LC_PAPER=C                 LC_NAME=C
>  [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods
> base
>
> other attached packages:
> [1] lubridate_1.2.0    directlabels_2.9   RColorBrewer_1.0-5 gridExtra_0.9.1
> [5] stringr_0.6.2      scales_0.2.3       plyr_1.8           reshape2_1.2.2
> [9] ggplot2_0.9.3
>
> loaded via a namespace (and not attached):
> [1] colorspace_1.2-1 dichromat_2.0-0  digest_0.6.1     gtable_0.1.2
> [5] labeling_0.1     MASS_7.3-23      munsell_0.4      proto_0.3-10
> [9] tools_2.15.2
>

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:
> Hi,
>
> Thanks for this and my appologies for taking so long to get back to you.
>
> I was so frustrated with my LyX/apa6/biblatex problems that I just stopped
> even trying to get it to work and got on with other things.
>
> I made the simple height to fig.height, etc change and it seems to work just
> fine now.
>
> My lack of LaTeX knowledge plus my inability to actually comprehend much of
> the knitr/Sweave material due to lack of experiencc with them is sometimes
> maddening.
>
> How do I set fig.height and fig.width in cm?  It appears to me that the
> default is inches?
>
> Thanks again.
>