Re: kitr problem after R update.

2013-02-18 Thread John Kane
That's what I was thinking last night after I had closed down the computer.  It 
does seem rather weird when almost no one uses Imperial measurements any more.  
Legacy issue I suppose?





 From: Yihui Xie x...@yihui.name
To: John Kane jrkrid...@yahoo.ca 
Cc: Lyx List lyx-users@lists.lyx.org 
Sent: Sunday, February 17, 2013 2:34:58 PM
Subject: Re: kitr problem after R update.
 
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.


Re: kitr problem after R update.

2013-02-18 Thread David L. Johnson

On 02/18/2013 10:53 AM, John Kane wrote:
That's what I was thinking last night after I had closed down the 
computer.  It does seem rather weird when almost no one uses Imperial 
measurements any more.  Legacy issue I suppose?


Nobody?  Nobody except your neighbors to the South.  Not that we call 
them Imperial, that would be almost as un-American as using the 
Godless metric system (yes, that really is what many people here called 
it when there was an abortive effort to convert, many years ago).


--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams



Re: kitr problem after R update.

2013-02-18 Thread John Kane





 From: David L. Johnson david.john...@lehigh.edu
To: lyx-users@lists.lyx.org 
Sent: Monday, February 18, 2013 11:06:00 AM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 10:53 AM, John Kane wrote: 
That's what I was thinking last night after I had closed down the computer.  It 
does seem rather weird when almost no one uses Imperial measurements any more.  
Legacy issue I suppose?

Nobody?  Nobody except your neighbors to the South.  Not that we
call them Imperial, that would be almost as un-American as using
the Godless metric system (yes, that really is what many people here
called it when there was an abortive effort to convert, many years
ago).  

Well there are a few misguided souls around still and I still have cook books 
in Imperial.  -- What do Americans call their  system anyway? 

It is always a pleasure to try and figure out if a gallon is Imperial (≈ 4.5 l 
or US (≈ 3.8 l)

--  David L. Johnson Anyone who is capable of getting themselves made President 
should on 
no account be allowed to do the job.   -- Douglas Adams 

Re: kitr problem after R update.

2013-02-18 Thread David L. Johnson

On 02/18/2013 03:14 PM, John Kane wrote:




*From:* David L. Johnson david.john...@lehigh.edu
*To:* lyx-users@lists.lyx.org
*Sent:* Monday, February 18, 2013 11:06:00 AM
*Subject:* Re: kitr problem after R update.

On 02/18/2013 10:53 AM, John Kane wrote:
That's what I was thinking last night after I had closed down the 
computer.  It does seem rather weird when almost no one uses Imperial 
measurements any more.  Legacy issue I suppose?


Nobody?  Nobody except your neighbors to the South.  Not that we call 
them Imperial, that would be almost as un-American as using the 
Godless metric system (yes, that really is what many people here 
called it when there was an abortive effort to convert, many years ago).


Well there are a few misguided souls around still and I still have 
cook books in Imperial.  -- What do Americans call their  system anyway?

English, usually, even though the British have basically switched over.


It is always a pleasure to try and figure out if a gallon is Imperial 
(≈ 4.5 l or US (≈ 3.8 l)
Is an Imperial gallon 5 pints, then?  I think that is the only US use of 
the term Imperial with respect to measurements.


--

David L. Johnson

It is a scientifically proven fact that a mid life crisis can only be
cured by something racy and Italian.  Bianchis and Colnagos are a lot
cheaper than Maserattis and Ferraris.
-- Glenn Davies



Re: kitr problem after R update.

2013-02-18 Thread John Kane





 From: David L. Johnson david.john...@lehigh.edu
To: John Kane jrkrid...@yahoo.ca 
Cc: lyx-users@lists.lyx.org lyx-users@lists.lyx.org 
Sent: Monday, February 18, 2013 3:31:24 PM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 03:14 PM, John Kane wrote: 






 From: David L. Johnson david.john...@lehigh.edu
To: lyx-users@lists.lyx.org 
Sent: Monday, February 18, 2013 11:06:00 AM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 10:53 AM, John Kane wrote: 
That's what I was thinking last night after I had closed down the computer.  
It does seem rather weird when almost no one uses Imperial measurements any 
more.  Legacy issue I suppose?

Nobody?  Nobody except your neighbors to the South.  Not
that we call them Imperial, that would be almost as
un-American as using the Godless metric system (yes,
that really is what many people here called it when
there was an abortive effort to convert, many years
ago).  

Well there are a few misguided souls around still and I
still have cook books in Imperial.  -- What do Americans
call their  system anyway? 

English, usually, even though the British have basically switched over.


It is always a pleasure to try and figure out if a
gallon is Imperial (≈ 4.5 l or US (≈ 3.8 l)

Is an Imperial gallon 5 pints, then?  I think that is the only US use of the 
term Imperial with respect to measurements. 

No apparently there are 8 pints in an Imperial gallon according to 
http://en.wikipedia.org/wiki/Pint

US and Imperial pints  aren't the same.  Not that I would know the only time I 
see a pint is when I'm in my local bar having a 20 fl oz (Imperial) pint of 
beer.  I don't think we, in Canada, use pints for anything else.   I've been in 
a commerical kitchen where there was mass confusion when a recipe called for x 
pints of Y.  No one had the slightest idea of what one looked like or what it 
was in relation to a litre.

--  David L. Johnson It is a scientifically proven fact that a mid life crisis 
can only be 
cured by something racy and Italian.  Bianchis and Colnagos are a lot 
cheaper than Maserattis and Ferraris.   -- Glenn Davies 

Re: kitr problem after R update.

2013-02-18 Thread John Kane
That's what I was thinking last night after I had closed down the computer.  It 
does seem rather weird when almost no one uses Imperial measurements any more.  
Legacy issue I suppose?





 From: Yihui Xie x...@yihui.name
To: John Kane jrkrid...@yahoo.ca 
Cc: Lyx List lyx-users@lists.lyx.org 
Sent: Sunday, February 17, 2013 2:34:58 PM
Subject: Re: kitr problem after R update.
 
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.


Re: kitr problem after R update.

2013-02-18 Thread David L. Johnson

On 02/18/2013 10:53 AM, John Kane wrote:
That's what I was thinking last night after I had closed down the 
computer.  It does seem rather weird when almost no one uses Imperial 
measurements any more.  Legacy issue I suppose?


Nobody?  Nobody except your neighbors to the South.  Not that we call 
them Imperial, that would be almost as un-American as using the 
Godless metric system (yes, that really is what many people here called 
it when there was an abortive effort to convert, many years ago).


--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams



Re: kitr problem after R update.

2013-02-18 Thread John Kane





 From: David L. Johnson david.john...@lehigh.edu
To: lyx-users@lists.lyx.org 
Sent: Monday, February 18, 2013 11:06:00 AM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 10:53 AM, John Kane wrote: 
That's what I was thinking last night after I had closed down the computer.  It 
does seem rather weird when almost no one uses Imperial measurements any more.  
Legacy issue I suppose?

Nobody?  Nobody except your neighbors to the South.  Not that we
call them Imperial, that would be almost as un-American as using
the Godless metric system (yes, that really is what many people here
called it when there was an abortive effort to convert, many years
ago).  

Well there are a few misguided souls around still and I still have cook books 
in Imperial.  -- What do Americans call their  system anyway? 

It is always a pleasure to try and figure out if a gallon is Imperial (≈ 4.5 l 
or US (≈ 3.8 l)

--  David L. Johnson Anyone who is capable of getting themselves made President 
should on 
no account be allowed to do the job.   -- Douglas Adams 

Re: kitr problem after R update.

2013-02-18 Thread David L. Johnson

On 02/18/2013 03:14 PM, John Kane wrote:




*From:* David L. Johnson david.john...@lehigh.edu
*To:* lyx-users@lists.lyx.org
*Sent:* Monday, February 18, 2013 11:06:00 AM
*Subject:* Re: kitr problem after R update.

On 02/18/2013 10:53 AM, John Kane wrote:
That's what I was thinking last night after I had closed down the 
computer.  It does seem rather weird when almost no one uses Imperial 
measurements any more.  Legacy issue I suppose?


Nobody?  Nobody except your neighbors to the South.  Not that we call 
them Imperial, that would be almost as un-American as using the 
Godless metric system (yes, that really is what many people here 
called it when there was an abortive effort to convert, many years ago).


Well there are a few misguided souls around still and I still have 
cook books in Imperial.  -- What do Americans call their  system anyway?

English, usually, even though the British have basically switched over.


It is always a pleasure to try and figure out if a gallon is Imperial 
(≈ 4.5 l or US (≈ 3.8 l)
Is an Imperial gallon 5 pints, then?  I think that is the only US use of 
the term Imperial with respect to measurements.


--

David L. Johnson

It is a scientifically proven fact that a mid life crisis can only be
cured by something racy and Italian.  Bianchis and Colnagos are a lot
cheaper than Maserattis and Ferraris.
-- Glenn Davies



Re: kitr problem after R update.

2013-02-18 Thread John Kane





 From: David L. Johnson david.john...@lehigh.edu
To: John Kane jrkrid...@yahoo.ca 
Cc: lyx-users@lists.lyx.org lyx-users@lists.lyx.org 
Sent: Monday, February 18, 2013 3:31:24 PM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 03:14 PM, John Kane wrote: 






 From: David L. Johnson david.john...@lehigh.edu
To: lyx-users@lists.lyx.org 
Sent: Monday, February 18, 2013 11:06:00 AM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 10:53 AM, John Kane wrote: 
That's what I was thinking last night after I had closed down the computer.  
It does seem rather weird when almost no one uses Imperial measurements any 
more.  Legacy issue I suppose?

Nobody?  Nobody except your neighbors to the South.  Not
that we call them Imperial, that would be almost as
un-American as using the Godless metric system (yes,
that really is what many people here called it when
there was an abortive effort to convert, many years
ago).  

Well there are a few misguided souls around still and I
still have cook books in Imperial.  -- What do Americans
call their  system anyway? 

English, usually, even though the British have basically switched over.


It is always a pleasure to try and figure out if a
gallon is Imperial (≈ 4.5 l or US (≈ 3.8 l)

Is an Imperial gallon 5 pints, then?  I think that is the only US use of the 
term Imperial with respect to measurements. 

No apparently there are 8 pints in an Imperial gallon according to 
http://en.wikipedia.org/wiki/Pint

US and Imperial pints  aren't the same.  Not that I would know the only time I 
see a pint is when I'm in my local bar having a 20 fl oz (Imperial) pint of 
beer.  I don't think we, in Canada, use pints for anything else.   I've been in 
a commerical kitchen where there was mass confusion when a recipe called for x 
pints of Y.  No one had the slightest idea of what one looked like or what it 
was in relation to a litre.

--  David L. Johnson It is a scientifically proven fact that a mid life crisis 
can only be 
cured by something racy and Italian.  Bianchis and Colnagos are a lot 
cheaper than Maserattis and Ferraris.   -- Glenn Davies 

Re: kitr problem after R update.

2013-02-18 Thread John Kane
That's what I was thinking last night after I had closed down the computer.  It 
does seem rather weird when almost no one uses Imperial measurements any more.  
Legacy issue I suppose?





 From: Yihui Xie <x...@yihui.name>
To: John Kane <jrkrid...@yahoo.ca> 
Cc: Lyx List <lyx-users@lists.lyx.org> 
Sent: Sunday, February 17, 2013 2:34:58 PM
Subject: Re: kitr problem after R update.
 
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.
>

Re: kitr problem after R update.

2013-02-18 Thread David L. Johnson

On 02/18/2013 10:53 AM, John Kane wrote:
That's what I was thinking last night after I had closed down the 
computer.  It does seem rather weird when almost no one uses Imperial 
measurements any more.  Legacy issue I suppose?


Nobody?  Nobody except your neighbors to the South.  Not that we call 
them "Imperial", that would be almost as un-American as using the 
Godless metric system (yes, that really is what many people here called 
it when there was an abortive effort to convert, many years ago).


--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams



Re: kitr problem after R update.

2013-02-18 Thread John Kane





 From: David L. Johnson <david.john...@lehigh.edu>
To: lyx-users@lists.lyx.org 
Sent: Monday, February 18, 2013 11:06:00 AM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 10:53 AM, John Kane wrote: 
That's what I was thinking last night after I had closed down the computer.  It 
does seem rather weird when almost no one uses Imperial measurements any more.  
Legacy issue I suppose?
>
Nobody?  Nobody except your neighbors to the South.  Not that we
call them "Imperial", that would be almost as un-American as using
the Godless metric system (yes, that really is what many people here
called it when there was an abortive effort to convert, many years
ago).  

Well there are a few misguided souls around still and I still have cook books 
in Imperial.  -- What do Americans call their  system anyway? 

It is always a pleasure to try and figure out if a gallon is Imperial (≈ 4.5 l 
or US (≈ 3.8 l)

--  David L. Johnson Anyone who is capable of getting themselves made President 
should on 
no account be allowed to do the job.   -- Douglas Adams 

Re: kitr problem after R update.

2013-02-18 Thread David L. Johnson

On 02/18/2013 03:14 PM, John Kane wrote:




*From:* David L. Johnson <david.john...@lehigh.edu>
*To:* lyx-users@lists.lyx.org
*Sent:* Monday, February 18, 2013 11:06:00 AM
*Subject:* Re: kitr problem after R update.

On 02/18/2013 10:53 AM, John Kane wrote:
That's what I was thinking last night after I had closed down the 
computer.  It does seem rather weird when almost no one uses Imperial 
measurements any more.  Legacy issue I suppose?


Nobody?  Nobody except your neighbors to the South.  Not that we call 
them "Imperial", that would be almost as un-American as using the 
Godless metric system (yes, that really is what many people here 
called it when there was an abortive effort to convert, many years ago).


Well there are a few misguided souls around still and I still have 
cook books in Imperial.  -- What do Americans call their  system anyway?

"English", usually, even though the British have basically switched over.


It is always a pleasure to try and figure out if a gallon is Imperial 
(≈ 4.5 l or US (≈ 3.8 l)
Is an Imperial gallon 5 pints, then?  I think that is the only US use of 
the term "Imperial" with respect to measurements.


--

David L. Johnson

It is a scientifically proven fact that a mid life crisis can only be
cured by something racy and Italian.  Bianchis and Colnagos are a lot
cheaper than Maserattis and Ferraris.
-- Glenn Davies



Re: kitr problem after R update.

2013-02-18 Thread John Kane





 From: David L. Johnson <david.john...@lehigh.edu>
To: John Kane <jrkrid...@yahoo.ca> 
Cc: "lyx-users@lists.lyx.org" <lyx-users@lists.lyx.org> 
Sent: Monday, February 18, 2013 3:31:24 PM
Subject: Re: kitr problem after R update.
 

On 02/18/2013 03:14 PM, John Kane wrote: 

>
>
>
>
>
> From: David L. Johnson <david.john...@lehigh.edu>
>To: lyx-users@lists.lyx.org 
>Sent: Monday, February 18, 2013 11:06:00 AM
>Subject: Re: kitr problem after R update.
> 
>
>On 02/18/2013 10:53 AM, John Kane wrote: 
>That's what I was thinking last night after I had closed down the computer.  
>It does seem rather weird when almost no one uses Imperial measurements any 
>more.  Legacy issue I suppose?
>>
>Nobody?  Nobody except your neighbors to the South.  Not
that we call them "Imperial", that would be almost as
un-American as using the Godless metric system (yes,
that really is what many people here called it when
there was an abortive effort to convert, many years
ago).  
>
>Well there are a few misguided souls around still and I
still have cook books in Imperial.  -- What do Americans
call their  system anyway? 
>
"English", usually, even though the British have basically switched over.


>It is always a pleasure to try and figure out if a
gallon is Imperial (≈ 4.5 l or US (≈ 3.8 l)
>
Is an Imperial gallon 5 pints, then?  I think that is the only US use of the 
term "Imperial" with respect to measurements. 

No apparently there are 8 pints in an Imperial gallon according to 
http://en.wikipedia.org/wiki/Pint

US and Imperial pints  aren't the same.  Not that I would know the only time I 
see a pint is when I'm in my local bar having a 20 fl oz (Imperial) pint of 
beer.  I don't think we, in Canada, use pints for anything else.   I've been in 
a commerical kitchen where there was mass confusion when a recipe called for x 
pints of Y.  No one had the slightest idea of what one looked like or what it 
was in relation to a litre.

--  David L. Johnson It is a scientifically proven fact that a mid life crisis 
can only be 
cured by something racy and Italian.  Bianchis and Colnagos are a lot 
cheaper than Maserattis and Ferraris.   -- Glenn Davies 

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.



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.



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 
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.
>


Re: kitr problem after R update.

2013-01-29 Thread Scott Kostyshak
On Sat, Jan 26, 2013 at 1:30 PM, Yihui Xie x...@yihui.name wrote:
 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-8LC_COLLATE=en_CA.UTF-8
  [5] LC_MONETARY=en_CA.UTF-8LC_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.0directlabels_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

John,

I had to make a couple of minor changes also when moving to 1.0 but
I'm glad that I was forced to make those changed. Did you get things
working? If not, please post back.

Scott


Re: kitr problem after R update.

2013-01-29 Thread Scott Kostyshak
On Sat, Jan 26, 2013 at 1:30 PM, Yihui Xie x...@yihui.name wrote:
 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-8LC_COLLATE=en_CA.UTF-8
  [5] LC_MONETARY=en_CA.UTF-8LC_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.0directlabels_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

John,

I had to make a couple of minor changes also when moving to 1.0 but
I'm glad that I was forced to make those changed. Did you get things
working? If not, please post back.

Scott


Re: kitr problem after R update.

2013-01-29 Thread Scott Kostyshak
On Sat, Jan 26, 2013 at 1:30 PM, Yihui Xie  wrote:
> 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-8LC_COLLATE=en_CA.UTF-8
>>  [5] LC_MONETARY=en_CA.UTF-8LC_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.0directlabels_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

John,

I had to make a couple of minor changes also when moving to 1.0 but
I'm glad that I was forced to make those changed. Did you get things
working? If not, please post back.

Scott


kitr problem after R update.

2013-01-26 Thread John Kane
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    

basic.knitr.attempt1.lyx
Description: application/lyx


Re: kitr problem after R update.

2013-01-26 Thread Yihui Xie
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-8LC_COLLATE=en_CA.UTF-8
  [5] LC_MONETARY=en_CA.UTF-8LC_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.0directlabels_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



kitr problem after R update.

2013-01-26 Thread John Kane
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    

basic.knitr.attempt1.lyx
Description: application/lyx


Re: kitr problem after R update.

2013-01-26 Thread Yihui Xie
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-8LC_COLLATE=en_CA.UTF-8
  [5] LC_MONETARY=en_CA.UTF-8LC_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.0directlabels_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



kitr problem after R update.

2013-01-26 Thread John Kane
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    

basic.knitr.attempt1.lyx
Description: application/lyx


Re: kitr problem after R update.

2013-01-26 Thread Yihui Xie
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-8LC_COLLATE=en_CA.UTF-8
>  [5] LC_MONETARY=en_CA.UTF-8LC_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.0directlabels_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
>