<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-13819</id>
	<title>Nabble - R</title>
	<updated>2008-05-13T02:55:33Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/R-f13819.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/R-f13819.html" />
	<subtitle type="html">R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&amp;T, now Lucent Technologies) by John Chambers and colleagues. R-Project home is &lt;a href=&quot;http://www.r-project.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-17205005</id>
	<title>Re: Random number generation</title>
	<published>2008-05-13T02:55:33Z</published>
	<updated>2008-05-13T02:55:33Z</updated>
	<author>
		<name>Jim Lemon-2</name>
	</author>
	<content type="html">On Behalf Of Esmail Bonakdarian wrote:
&lt;br&gt;&amp;nbsp;&amp;gt; ...
&lt;br&gt;&amp;nbsp;&amp;gt; What I read doesn't seem to be incorrect however (it may even
&lt;br&gt;&amp;nbsp;&amp;gt; have been an archived message here), the *language* itself
&lt;br&gt;&amp;nbsp;&amp;gt; does not seem to support block *comments*. Using conditional
&lt;br&gt;&amp;nbsp;&amp;gt; constructs, or an IDE/editor to achieve similar results is a
&lt;br&gt;&amp;nbsp;&amp;gt; work around - but not the same. I don't mean to nitpick, but
&lt;br&gt;&amp;nbsp;&amp;gt; as a computer scientist I see this as different :-)
&lt;br&gt;&lt;br&gt;For those using NEdit, the R block comment macro:
&lt;br&gt;&lt;br&gt;replace_in_selection(&amp;quot;^&amp;quot;,&amp;quot;#&amp;quot;,&amp;quot;regex&amp;quot;)
&lt;br&gt;&lt;br&gt;and the corresponding R block uncomment macro:
&lt;br&gt;&lt;br&gt;replace_in_selection(&amp;quot;^#&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;regex&amp;quot;)
&lt;br&gt;&lt;br&gt;are both trivial. Just highlight the block and detonate the macro.
&lt;br&gt;&lt;br&gt;Jim
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17205005&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Random-number-generation-tp17165866p17205005.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204966</id>
	<title>Re: test</title>
	<published>2008-05-13T02:52:21Z</published>
	<updated>2008-05-13T02:52:21Z</updated>
	<author>
		<name>Esmail Bonakdarian-4</name>
	</author>
	<content type="html">Tony Plate wrote:
&lt;br&gt;&amp;gt; You probably should check this section in your R-help subscription 
&lt;br&gt;&amp;gt; options (via &lt;a href=&quot;https://stat.ethz.ch/mailman/options/r-help/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/options/r-help/&lt;/a&gt;, I think):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Receive your own posts to the list?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Tony,
&lt;br&gt;&lt;br&gt;Like jt I too have it set to receive my own messages, but I too
&lt;br&gt;don't see them. I wonder if it has to do with the fact that both
&lt;br&gt;of us use gmail to post to the list?
&lt;br&gt;&lt;br&gt;In any case, regardless if we see them, they are getting posted,
&lt;br&gt;which is what matters :)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Esmail
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204966&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/test-tp17196359p17204966.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204986</id>
	<title>Re: Regular Expressions</title>
	<published>2008-05-13T02:52:01Z</published>
	<updated>2008-05-13T02:52:01Z</updated>
	<author>
		<name>Dimitris Rizopoulos</name>
	</author>
	<content type="html">try this:
&lt;br&gt;&lt;br&gt;S &amp;lt;- c(&amp;quot;World_is_beautiful&amp;quot;, &amp;quot;one_two_three_four&amp;quot;,&amp;quot;My_book&amp;quot;)
&lt;br&gt;&lt;br&gt;sapply(strsplit(S, &amp;quot;_&amp;quot;), tail, n = 2)[1, ]
&lt;br&gt;# or
&lt;br&gt;sapply(strsplit(S, &amp;quot;_&amp;quot;), function(x) x[length(x) - 1])
&lt;br&gt;&lt;br&gt;&lt;br&gt;I hope it helps.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Dimitris
&lt;br&gt;&lt;br&gt;----
&lt;br&gt;Dimitris Rizopoulos
&lt;br&gt;Biostatistical Centre
&lt;br&gt;School of Public Health
&lt;br&gt;Catholic University of Leuven
&lt;br&gt;&lt;br&gt;Address: Kapucijnenvoer 35, Leuven, Belgium
&lt;br&gt;Tel: +32/(0)16/336899
&lt;br&gt;Fax: +32/(0)16/337015
&lt;br&gt;Web: &lt;a href=&quot;http://med.kuleuven.be/biostat/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://med.kuleuven.be/biostat/&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.student.kuleuven.be/~m0390867/dimitris.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.student.kuleuven.be/~m0390867/dimitris.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Shubha Vishwanath Karanth&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204986&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shubhak@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204986&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Tuesday, May 13, 2008 11:02 AM
&lt;br&gt;Subject: [R] Regular Expressions
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi R,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Again struck with regular expressions...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Suppose,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;S=c(&amp;quot;World_is_beautiful&amp;quot;, &amp;quot;one_two_three_four&amp;quot;,&amp;quot;My_book&amp;quot;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I need to extract the last but one element of the strings. So, my 
&lt;br&gt;output should look like:
&lt;br&gt;&lt;br&gt;Ans=c(&amp;quot;is&amp;quot;,&amp;quot;three&amp;quot;,&amp;quot;My&amp;quot;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;gsub() can do this...but wondering how do I give the regular 
&lt;br&gt;expression....
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Shubha Karanth | Amba Research
&lt;br&gt;&lt;br&gt;Ph +91 80 3980 8031 | Mob +91 94 4886 4510
&lt;br&gt;&lt;br&gt;Bangalore * Colombo * London * New York * San José * Singapore * 
&lt;br&gt;www.ambaresearch.com
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;This e-mail may contain confidential and/or privileged 
&lt;br&gt;i...{{dropped:13}}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204986&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Disclaimer: &lt;a href=&quot;http://www.kuleuven.be/cwis/email_disclaimer.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kuleuven.be/cwis/email_disclaimer.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204986&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Regular-Expressions-tp17204767p17204986.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204914</id>
	<title>Re: array dimension changes with assignment</title>
	<published>2008-05-13T02:44:55Z</published>
	<updated>2008-05-13T02:44:55Z</updated>
	<author>
		<name>Jeremiah Rounds</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt;Why does the assignment of a 3178x93 object to &amp;gt;another 3178x93 object remove the dimension attribute?&amp;gt;&amp;gt; GT &amp;lt;- array(dim = c(6,nrow(InData),ncol(InSNPs)))&amp;gt;&amp;gt; dim(GT)&amp;gt;[1] &amp;nbsp; 6 3178 &amp;nbsp;93&amp;gt;&amp;gt; SNP1 &amp;lt;- InSNPs[InData[,&amp;quot;C1&amp;quot;],]&amp;gt;&amp;gt; dim(SNP1)&amp;gt;[1] 3178 &amp;nbsp;93&amp;gt;&amp;gt; SNP2 &amp;lt;- InSNPs[InData[,&amp;quot;C2&amp;quot;],]&amp;gt;&amp;gt; dim(SNP2)&amp;gt;[1] 3178 &amp;nbsp;93&amp;gt;&amp;gt; dim(pmin(SNP1,SNP2))&amp;gt;[1] 3178 &amp;nbsp;93&amp;gt;&amp;gt; GT[1,,] &amp;lt;- pmin(SNP1,SNP2)&amp;gt;&amp;gt; dim(GT)&amp;gt;NULL &amp;nbsp; # why??????????????????????????????????????&amp;gt;&amp;gt; GT[2,,] &amp;lt;- pmax(SNP1,SNP2)&amp;gt;Error in GT[2, , ] &amp;lt;- pmax(SNP1, SNP2) : incorrect number of .subscripts
&lt;br&gt;---------------------------------------------------
&lt;br&gt;&lt;br&gt;My understanding is that an array is just a list with a dimension attribute, so first note that loosing the dim attribute is not a great loss. &amp;nbsp;It does not represent an inefficiency.
&lt;br&gt;&lt;br&gt;But consider this code:
&lt;br&gt;&amp;gt; GT &amp;lt;- array(dim = c(6,3178, &amp;nbsp;93) )&amp;gt; dim(GT)[1] &amp;nbsp; &amp;nbsp;6 3178 &amp;nbsp; 93&amp;gt; &amp;gt; &amp;gt; SNP1 &amp;lt;-as.array(matrix(0,nrow=3178,ncol=93))&amp;gt; dim(SNP1)[1] 3178 &amp;nbsp; 93&amp;gt; &amp;gt; &amp;gt; &amp;gt; GT[1,,] &amp;lt;- SNP1&amp;gt; dim(GT)[1] &amp;nbsp; &amp;nbsp;6 3178 &amp;nbsp; 93
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here what you wanted to happen happened just fine. &amp;nbsp;So the question you might ask yourself is: what is different? &amp;nbsp;And that leads to asking what class is the SNP1 object? &amp;nbsp;If you can coerce into an array you probably can avoid the issue.
&lt;br&gt;&lt;br&gt;Jeremiah Rounds
&lt;br&gt;Graduate Student
&lt;br&gt;Utah State University
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Get Free (PRODUCT) RED &amp;nbsp;Emoticons, Winks and Display Pics.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;&lt;br /&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204914&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/array-dimension-changes-with-assignment-tp17202589p17204914.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204787</id>
	<title>Re: Format integer</title>
	<published>2008-05-13T02:40:55Z</published>
	<updated>2008-05-13T02:40:55Z</updated>
	<author>
		<name>Esmail Bonakdarian-4</name>
	</author>
	<content type="html">Anh Tran wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; What's one way to convert an integer to a string with preceding 0's?
&lt;br&gt;&amp;gt; such that
&lt;br&gt;&amp;gt; '13' becomes '00000000013'
&lt;br&gt;&amp;gt; to be put into a string
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've tried formatC, but they removes all the zeros and replace it with
&lt;br&gt;&amp;gt; blanks
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;try sprintf:
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt;i=13
&lt;br&gt;&amp;nbsp;&amp;gt; cat(sprintf(&amp;quot;%05d\n&amp;quot;, i))
&lt;br&gt;00013
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&lt;br&gt;Esmail
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204787&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Format-integer-tp17196532p17204787.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204480</id>
	<title>Re: fft: characteristic function to distribution</title>
	<published>2008-05-13T02:22:25Z</published>
	<updated>2008-05-13T02:22:25Z</updated>
	<author>
		<name>Thomas Steiner</name>
	</author>
	<content type="html">Matthias Kohl was so kind and provided me the following lines in this issue:
&lt;br&gt;&lt;br&gt;library(distrEx)
&lt;br&gt;chf &amp;lt;- function(t, D){
&lt;br&gt;&amp;nbsp; E(D, function(x){exp(1i*t*x)}, useApply = FALSE)
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;## Normalverteilung
&lt;br&gt;D &amp;lt;- Norm()
&lt;br&gt;t &amp;lt;- seq(-3, 3, by = 0.05)
&lt;br&gt;chf.norm &amp;lt;- sapply(t, chf, D = D)
&lt;br&gt;chf.exakt &amp;lt;- exp(-t^2/2)
&lt;br&gt;chf.diff &amp;lt;- chf.norm - chf.exakt
&lt;br&gt;plot(chf.diff)
&lt;br&gt;abs(chf.diff)
&lt;br&gt;&lt;br&gt;&lt;br&gt;This is nice BUT:
&lt;br&gt;* Only built-in distributions can be used
&lt;br&gt;* I want to understand the fft() function, instead here you used E()
&lt;br&gt;of the distrEx package.
&lt;br&gt;&lt;br&gt;Apart from this it was exactly what i was looking for: I know the
&lt;br&gt;characteristic function and want to get the distribution. (My porposal
&lt;br&gt;was to use fft(,inverse=T).)
&lt;br&gt;Any help appreciated,
&lt;br&gt;Thomas
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204480&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/fft%3A-characteristic-function-to-distribution-tp16980970p17204480.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204468</id>
	<title>Re: OS X / R.h</title>
	<published>2008-05-13T02:06:05Z</published>
	<updated>2008-05-13T02:06:05Z</updated>
	<author>
		<name>Prof Brian Ripley</name>
	</author>
	<content type="html">On Tue, 13 May 2008, Adam Hinz wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey, I have a question about including the R framework in a file. I'm
&lt;br&gt;&amp;gt; running OS X 10.5.2. When I attempt to use:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;R/R.h&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And compile I get the following error:
&lt;br&gt;&amp;gt; /Library/Frameworks/R.framework/Headers/R.h:40:21: error: Rconfig.h:
&lt;br&gt;&amp;gt; No such file or directory
&lt;br&gt;&amp;gt; /Library/Frameworks/R.framework/Headers/R.h:41:57: error: R_ext/
&lt;br&gt;&amp;gt; Arith.h: No such file or directory
&lt;br&gt;&amp;gt; /Library/Frameworks/R.framework/Headers/R.h:42:50: error: R_ext/
&lt;br&gt;&amp;gt; Boolean.h: No such file or directory
&lt;br&gt;&amp;gt; /Library/Frameworks/R.framework/Headers/R.h:43:50: error: R_ext/
&lt;br&gt;&amp;gt; Complex.h: No such file or directory
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What am I doing wrong?
&lt;/div&gt;&lt;br&gt;Posting to multiple lists with insufficient information. &amp;nbsp;This has already 
&lt;br&gt;been asked and answered on R-sig-mac -- see the thread beginning
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/pipermail/r-sig-mac/2008-May/004979.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/pipermail/r-sig-mac/2008-May/004979.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;It would be nice to have some acknowledgement of help already received 
&lt;br&gt;....
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt; Adam
&lt;br&gt;&amp;gt; 	[[alternative HTML version deleted]]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204468&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Brian D. Ripley, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204468&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;
&lt;br&gt;Professor of Applied Statistics, &amp;nbsp;&lt;a href=&quot;http://www.stats.ox.ac.uk/~ripley/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.stats.ox.ac.uk/~ripley/&lt;/a&gt;&lt;br&gt;University of Oxford, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tel: &amp;nbsp;+44 1865 272861 (self)
&lt;br&gt;1 South Parks Road, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +44 1865 272866 (PA)
&lt;br&gt;Oxford OX1 3TG, UK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fax: &amp;nbsp;+44 1865 272595
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204468&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/OS-X---R.h-tp17203840p17204468.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204195</id>
	<title>Re: Unable to restore saved data in .RData (PR#11455)</title>
	<published>2008-05-13T02:03:46Z</published>
	<updated>2008-05-13T02:03:46Z</updated>
	<author>
		<name>Prof Brian Ripley</name>
	</author>
	<content type="html">Sorry, there is nothing to reproduce here.
&lt;br&gt;&lt;br&gt;The pertinent error message is not the one you quote in your subject line 
&lt;br&gt;but
&lt;br&gt;&lt;br&gt;Error in file.exists(name) : unsupported conversion in 'filenameToWchar'
&lt;br&gt;&lt;br&gt;At face value that means that iconv does not know about your locale.
&lt;br&gt;That's possible, but it does know about 'English'. &amp;nbsp;If you can start R at 
&lt;br&gt;all, what does Sys.getlocale() give?
&lt;br&gt;&lt;br&gt;See what happens if you add LC_ALL=en to the target on the shortcut you 
&lt;br&gt;use to start R. &amp;nbsp;That should force use of American English (it does for 
&lt;br&gt;me).
&lt;br&gt;&lt;br&gt;It's a long shot, but if that fails can you please try R-patched, binaries 
&lt;br&gt;available from
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://cran.r-project.org/bin/windows/base/rpatched.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cran.r-project.org/bin/windows/base/rpatched.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;If the real error is something earlier, this might have solved it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, 13 May 2008, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204195&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ericwong001@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Full_Name: Eric Wong
&lt;br&gt;&amp;gt; Version: 2.7
&lt;br&gt;&lt;br&gt;I presume you mean 2.7.0?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; OS: Windows XP SP2
&lt;br&gt;&amp;gt; Submission from: (NULL) (203.198.252.239)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I installed R software version 2.7 onto my computer (Windows XP SP2 English).
&lt;br&gt;&amp;gt; The installation was smooth without problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, R program crashed with the following error message:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Error in file.exists(name) : unsupported conversion in 'filenameToWchar'
&lt;br&gt;&amp;gt; &amp;nbsp;Fatal error: unable to restore saved data in .RData
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can anyone provide a remedy to this? Many thanks in advance. Cheers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204195&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Brian D. Ripley, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204195&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;
&lt;br&gt;Professor of Applied Statistics, &amp;nbsp;&lt;a href=&quot;http://www.stats.ox.ac.uk/~ripley/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.stats.ox.ac.uk/~ripley/&lt;/a&gt;&lt;br&gt;University of Oxford, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tel: &amp;nbsp;+44 1865 272861 (self)
&lt;br&gt;1 South Parks Road, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +44 1865 272866 (PA)
&lt;br&gt;Oxford OX1 3TG, UK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fax: &amp;nbsp;+44 1865 272595
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204195&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Unable-to-restore-saved-data-in-.RData-%28PR-11455%29-tp17203742p17204195.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17204767</id>
	<title>Regular Expressions</title>
	<published>2008-05-13T02:02:31Z</published>
	<updated>2008-05-13T02:02:31Z</updated>
	<author>
		<name>Shubha Vishwanath Karanth</name>
	</author>
	<content type="html">Hi R,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Again struck with regular expressions...
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Suppose,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;S=c(&amp;quot;World_is_beautiful&amp;quot;, &amp;quot;one_two_three_four&amp;quot;,&amp;quot;My_book&amp;quot;)
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I need to extract the last but one element of the strings. So, my output should look like:
&lt;br&gt;&lt;br&gt;Ans=c(&amp;quot;is&amp;quot;,&amp;quot;three&amp;quot;,&amp;quot;My&amp;quot;)
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;gsub() can do this...but wondering how do I give the regular expression....
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Shubha Karanth | Amba Research
&lt;br&gt;&lt;br&gt;Ph +91 80 3980 8031 | Mob +91 94 4886 4510 
&lt;br&gt;&lt;br&gt;Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;This e-mail may contain confidential and/or privileged i...{{dropped:13}}
&lt;br&gt;&lt;br&gt;&lt;br /&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17204767&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Regular-Expressions-tp17204767p17204767.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203755</id>
	<title>Re: Permutations</title>
	<published>2008-05-13T01:30:38Z</published>
	<updated>2008-05-13T01:30:38Z</updated>
	<author>
		<name>Stephan Kolassa</name>
	</author>
	<content type="html">Hi Elke,
&lt;br&gt;&lt;br&gt;the matrix you are trying to create has 5^21 = 476837158203125 rows and 21 columns. I'm afraid Thierry's proposal with n=21 will not fit into memory. And the file you are writing is 5^21*5*8 bytes big, about 80108643 GB.
&lt;br&gt;&lt;br&gt;Perhaps you want to think a little more about what you are trying to achieve and, e.g., consider random sampling from the matrix?
&lt;br&gt;&lt;br&gt;In addition, look at your code: you append every single line to the output file, i.e., you open and close your file 5^21 = 476837158203125 times. File I/O always takes a lot of time. File I/O in a loop usually leads to slow execution.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;Stephan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;ONKELINX, Thierry schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear Elke,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think you need something like this. It's only for 3 variables, but I
&lt;br&gt;&amp;gt; think you know how to expand it for more variables.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mat &amp;lt;- expand.grid(a = 0:4, b = 0:4, c = 0:4)
&lt;br&gt;&amp;gt; write.table(mat, file=&amp;quot;C:/Documents and Settings/My
&lt;br&gt;&amp;gt; Documents/permutations.txt&amp;quot;,sep=&amp;quot;;&amp;quot;,col.names=FALSE, row.names=FALSE)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thierry
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Van: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203755&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203755&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help-bounces@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Namens Elke Moons
&lt;br&gt;&amp;gt; Verzonden: dinsdag 13 mei 2008 9:49
&lt;br&gt;&amp;gt; Aan: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203755&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Onderwerp: [R] Permutations
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dear R-users,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there an easy way to determine all possible vectors of length 21 with
&lt;br&gt;&amp;gt; each entry having permutations from 0 to 4, instead of doing it like
&lt;br&gt;&amp;gt; this?
&lt;br&gt;&amp;gt; It really takes up too much time, and I am convinced that there exists
&lt;br&gt;&amp;gt; something easier.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can you help me? Thank you in advance! 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Elke
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (a in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (b in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (c in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (d in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (e in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (f in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (g in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (h in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (i in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (j in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (k in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (l in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (m in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (n in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (o in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (p in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (q in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (r in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (s in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (u in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for (v in 0:4){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; vec&amp;lt;-list(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; write.table(vec,file=&amp;quot;C:/Documents and Settings/My
&lt;br&gt;&amp;gt; Documents/permutations.txt&amp;quot;,sep=&amp;quot;;&amp;quot;,col.names=FALSE, row.names=FALSE,
&lt;br&gt;&amp;gt; append=TRUE)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203755&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Permutations-tp17203005p17203755.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203676</id>
	<title>Re: ggplot2: font size mismatch for pdf output</title>
	<published>2008-05-13T01:29:34Z</published>
	<updated>2008-05-13T01:29:34Z</updated>
	<author>
		<name>Prof Brian Ripley</name>
	</author>
	<content type="html">If I do
&lt;br&gt;&lt;br&gt;&amp;gt; windows(width=6, height=5)
&lt;br&gt;&lt;br&gt;then the pdf plot is very good copy of what I see on screen. &amp;nbsp;So the main 
&lt;br&gt;issue seems to be that you changed the device size when you asked for the 
&lt;br&gt;save. &amp;nbsp;If you do that, you need to change 'pointsize' too -- but as you 
&lt;br&gt;changed the aspect ratio, you cannot make that work exactly.
&lt;br&gt;&lt;br&gt;There is a bug in ggsave() for bitmap devices: it computes the width and 
&lt;br&gt;height from 'dpi', but it fails to pass that information on to the 
&lt;br&gt;devices, which assume 72dpi. &amp;nbsp;So what it actually asked for was a
&lt;br&gt;8 x 6.67 inch plot at 72dpi. &amp;nbsp;72dpi would be a better default, as not all 
&lt;br&gt;of the many bitmap devices work correctly at other resolutions (and none 
&lt;br&gt;did prior to R 2.7.0).
&lt;br&gt;&lt;br&gt;If you want an accurate png copy of what you see on screen, use savePlot() 
&lt;br&gt;or the device menus. &amp;nbsp;That copies the backing bitmap.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Mon, 12 May 2008, Michael Friendly wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sorry for not providing this in my initial posting.
&lt;br&gt;&amp;gt; I'm using R version 2.7.0 (2008-04-22), on Win XP Pro.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As I said, the .png output matched what I saw on screen.
&lt;br&gt;&amp;gt; It was the .pdf output for which the font size was noticeably
&lt;br&gt;&amp;gt; larger, enough to make the legend run off the screen.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Michael
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Prof Brian Ripley wrote:
&lt;br&gt;&amp;gt;&amp;gt; What version of R and OS is this? &amp;nbsp;Prior to R 2.7.0 there was little 
&lt;br&gt;&amp;gt;&amp;gt; attempt to match output dimensions from various devices, and one of the png 
&lt;br&gt;&amp;gt;&amp;gt; devices in 2.7.0 has an error in doing so, fixed in R-patched (see NEWS).
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On Mon, 12 May 2008, Michael Friendly wrote:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In the following, the graph I see on the screen and the .png output
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; coincide. &amp;nbsp;However, in the .pdf file, the fonts seem to be scaled
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fairly larger, resulting in the label for the top legend disappearing.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is this an infelicity or bug, or is there something I've missed?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; More generally, how do I control the size of fonts used in legends
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and axis labels?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; library(car)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; library(ggplot2)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; qp &amp;lt;-qplot (education , income , shape=type , size=women , colour=prestige 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;xlab=&amp;quot;Education&amp;quot; , ylab=&amp;quot;Income&amp;quot;, data=Prestige)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; + scale_y_continuous(limits=c(NA, 20000))
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Hmm, you can't break the line before '+'.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; qp + scale_size(to=c(1,8))
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ggsave(file=&amp;quot;prestige-ggplot.png&amp;quot;, width=6, height=5) &amp;nbsp;# OK
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ggsave(file=&amp;quot;prestige-ggplot.pdf&amp;quot;, width=6, height=5) &amp;nbsp;# fonts too large
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I would not expect you to be able to specify a smaller size without also 
&lt;br&gt;&amp;gt;&amp;gt; reducing 'pointsize'. &amp;nbsp;E.g. dev.print() does so, but ggsave seems not to.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Michael
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Brian D. Ripley, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203676&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;
&lt;br&gt;Professor of Applied Statistics, &amp;nbsp;&lt;a href=&quot;http://www.stats.ox.ac.uk/~ripley/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.stats.ox.ac.uk/~ripley/&lt;/a&gt;&lt;br&gt;University of Oxford, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tel: &amp;nbsp;+44 1865 272861 (self)
&lt;br&gt;1 South Parks Road, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +44 1865 272866 (PA)
&lt;br&gt;Oxford OX1 3TG, UK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fax: &amp;nbsp;+44 1865 272595
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203676&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ggplot2%3A-font-size-mismatch-for-pdf-output-tp17188528p17203676.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203570</id>
	<title>Re: (PR#11281) Bug in R 2.7 for over long lines (crasher+proposed fix!)</title>
	<published>2008-05-13T01:25:09Z</published>
	<updated>2008-05-13T01:25:09Z</updated>
	<author>
		<name>Roger Bivand</name>
	</author>
	<content type="html">On Tue, 13 May 2008, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maechler@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;BDR&amp;quot; == Prof Brian Ripley &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; on Tue, 13 May 2008 07:32:43 +0100 (BST) writes:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; This example does not crash in R 2.7.0, R-patched nor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; R-devel (r45677) for me (x86_64 F8 Linux.) &amp;nbsp;It also
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; does not crash with the CRAN build of R 2.7.0 on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; Windows XP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Neither does it for me in R 2.7.0
&lt;br&gt;&amp;gt; on two x86_64 Linux platforms:
&lt;br&gt;&amp;gt; &amp;nbsp; Ubuntu 8.04 and Redhat Enterprise 5.1
&lt;/div&gt;&lt;br&gt;For the record, it does crash release 2.7.0 on a fully updated RHEL 5 
&lt;br&gt;ix86, on fully updated F7 ix86 (gdb &amp;quot;memory corruption&amp;quot;); on RHEL 4 ix86 
&lt;br&gt;gdb says: &amp;quot;double free or corruption&amp;quot; and points at
&lt;br&gt;&lt;br&gt;#0 &amp;nbsp;0x003bc7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
&lt;br&gt;#1 &amp;nbsp;0x00baa815 in raise () from /lib/tls/libc.so.6
&lt;br&gt;#2 &amp;nbsp;0x00bac279 in abort () from /lib/tls/libc.so.6
&lt;br&gt;#3 &amp;nbsp;0x00bdecca in __libc_message () from /lib/tls/libc.so.6
&lt;br&gt;#4 &amp;nbsp;0x00be555f in _int_free () from /lib/tls/libc.so.6
&lt;br&gt;#5 &amp;nbsp;0x00be593a in free () from /lib/tls/libc.so.6
&lt;br&gt;#6 &amp;nbsp;0x08169131 in Rf_yyparse () at gram.c:3041
&lt;br&gt;#7 &amp;nbsp;0x08169284 in R_Parse1 (status=0x0) at gram.c:3326
&lt;br&gt;#8 &amp;nbsp;0x08169362 in R_Parse (n=-1, status=0xbfffe9d8, srcfile=0x8b33820)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;at gram.c:3447
&lt;br&gt;&lt;br&gt;This is of course only of historical interest, since 2.8.0 (2008-05-13 
&lt;br&gt;r45678) on RHEL 4 completes source(&amp;quot;Features.R&amp;quot;) repeatedly with no 
&lt;br&gt;apparent difficulty. So it was a 32-bit problem on some Linux systems.
&lt;br&gt;&lt;br&gt;Roger
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; On Tue, 13 May 2008, Soeren Sonnenburg wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; On Mon, 2008-05-12 at 11:10 +0200,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maechler@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; Hi Soeren,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;SS&amp;quot; == Soeren Sonnenburg &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt;&amp;gt; on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sat, 10 May 2008 05:32:14 +0000 writes:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; On Sat, 2008-04-26 at 09:38 +0200, Peter Dalgaard wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt; wrote: &amp;gt; OK, I am just sending it
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; here &amp;gt;&amp;gt; too as it looks like &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-devel@...&lt;/a&gt; &amp;gt; is
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; not the &amp;gt;&amp;gt; right place:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I think it was seen there too, just that noone got
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; around &amp;gt;&amp;gt; to reply. In R-bugs, there's a filing system
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; so that it &amp;gt;&amp;gt; won't be completely forgotten...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; Looks like no one cares about this :(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; Just &amp;quot;looks like&amp;quot; but it aint...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; What should I do now? I mean I pointed directly to the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; bug and did show how it could be fixed....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; I'm not among the parse experts within R-core, but I
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; think the main problem with your report is that you talk
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; about a crash but do not provide &amp;quot;self-contained
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; reproducible&amp;quot; code to produce such a crash, but just the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; assertion that you get crashes when working on R &amp;lt;-&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; Swig interaction. &amp;nbsp;Can you construct simple R code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; producing the crash?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; No. I put however difficult autogenerated (~800k big!) .R
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; code that will crash R 2.7 at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;http://nn7.de/debugging/Features.R&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nn7.de/debugging/Features.R&lt;/a&gt;&amp;nbsp;for everyone to enjoy
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; :)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; Sourcing it will crash R2.7.0 (without my fix) but not
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; 2.8.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; Soeren
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Roger Bivand
&lt;br&gt;Economic Geography Section, Department of Economics, Norwegian School of
&lt;br&gt;Economics and Business Administration, Helleveien 30, N-5045 Bergen,
&lt;br&gt;Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
&lt;br&gt;e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Roger.Bivand@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203570&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28PR-11281%29-Bug-in-R-2.7-for-over-long-lines-%28crasher%2Bproposed-fix%21%29-tp17202440p17203570.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203475</id>
	<title>xirr...</title>
	<published>2008-05-13T01:21:50Z</published>
	<updated>2008-05-13T01:21:50Z</updated>
	<author>
		<name>Alberto Santini</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;A few weeks ago, I need to calculate the Internal Rate of Return for irregular intervals.
&lt;br&gt;&lt;br&gt;There is the package 'financial', with the function 'cashflow', calculating irr for regular intervals.
&lt;br&gt;So I developed xirr, managing irregular intervals, that's accepting a vector of dates as xirr Excel function.
&lt;br&gt;&lt;br&gt;You can find the code at
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://albertosantini.blogspot.com/2008/01/xirr.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://albertosantini.blogspot.com/2008/01/xirr.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;#~ Title: XIRR Excel function simulation
&lt;br&gt;#~ 
&lt;br&gt;#~ Reference 1: How to manage irregular intervals - &lt;a href=&quot;http://www.geocities.com/accessreddy/excel/xirr.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.geocities.com/accessreddy/excel/xirr.htm&lt;/a&gt;&lt;br&gt;#~ Reference 2: How to calculate IRR manually - &lt;a href=&quot;http://www.s-anand.net/Calculating_IRR_manually.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.s-anand.net/Calculating_IRR_manually.html&lt;/a&gt;&lt;br&gt;#~ 
&lt;br&gt;#~ Step 1: enter zeroes (0) against dates that do not have any cash outflow or inflows.
&lt;br&gt;#~ Step 1bis: calculate IRR for these cash flow values using normal IRR function.
&lt;br&gt;#~ Step 1tris: or using an iteractive approach as bisection method to find the NPV zeroes.
&lt;br&gt;#~ Step 2: multiply this value of IRR by 365 to get annual IRR (since, these are daily cash flows).
&lt;br&gt;#~ Step 3: refine using the formula =( 1+ R / 365) ^ 365 - 1), where R is the the value obtained in Step2.
&lt;br&gt;#~
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Alberto Santini&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/xirr...-tp17203475p17203475.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203392</id>
	<title>Re: Permutations</title>
	<published>2008-05-13T01:15:49Z</published>
	<updated>2008-05-13T01:15:49Z</updated>
	<author>
		<name>ONKELINX, Thierry</name>
	</author>
	<content type="html">Dear Elke,
&lt;br&gt;&lt;br&gt;I think you need something like this. It's only for 3 variables, but I
&lt;br&gt;think you know how to expand it for more variables.
&lt;br&gt;&lt;br&gt;mat &amp;lt;- expand.grid(a = 0:4, b = 0:4, c = 0:4)
&lt;br&gt;write.table(mat, file=&amp;quot;C:/Documents and Settings/My
&lt;br&gt;Documents/permutations.txt&amp;quot;,sep=&amp;quot;;&amp;quot;,col.names=FALSE, row.names=FALSE)
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&lt;br&gt;Thierry
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;----
&lt;br&gt;ir. Thierry Onkelinx
&lt;br&gt;Instituut voor natuur- en bosonderzoek / Research Institute for Nature
&lt;br&gt;and Forest
&lt;br&gt;Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
&lt;br&gt;methodology and quality assurance
&lt;br&gt;Gaverstraat 4
&lt;br&gt;9500 Geraardsbergen
&lt;br&gt;Belgium 
&lt;br&gt;tel. + 32 54/436 185
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203392&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Thierry.Onkelinx@...&lt;/a&gt; 
&lt;br&gt;www.inbo.be 
&lt;br&gt;&lt;br&gt;To call in the statistician after the experiment is done may be no more
&lt;br&gt;than asking him to perform a post-mortem examination: he may be able to
&lt;br&gt;say what the experiment died of.
&lt;br&gt;~ Sir Ronald Aylmer Fisher
&lt;br&gt;&lt;br&gt;The plural of anecdote is not data.
&lt;br&gt;~ Roger Brinner
&lt;br&gt;&lt;br&gt;The combination of some data and an aching desire for an answer does not
&lt;br&gt;ensure that a reasonable answer can be extracted from a given body of
&lt;br&gt;data.
&lt;br&gt;~ John Tukey
&lt;br&gt;&lt;br&gt;-----Oorspronkelijk bericht-----
&lt;br&gt;Van: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203392&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203392&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help-bounces@...&lt;/a&gt;]
&lt;br&gt;Namens Elke Moons
&lt;br&gt;Verzonden: dinsdag 13 mei 2008 9:49
&lt;br&gt;Aan: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203392&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-help@...&lt;/a&gt;
&lt;br&gt;Onderwerp: [R] Permutations
&lt;br&gt;&lt;br&gt;Dear R-users,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Is there an easy way to determine all possible vectors of length 21 with
&lt;br&gt;each entry having permutations from 0 to 4, instead of doing it like
&lt;br&gt;this?
&lt;br&gt;It really takes up too much time, and I am convinced that there exists
&lt;br&gt;something easier.
&lt;br&gt;&lt;br&gt;Can you help me? Thank you in advance! 
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Elke
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;for (a in 0:4){
&lt;br&gt;&lt;br&gt;for (b in 0:4){
&lt;br&gt;&lt;br&gt;for (c in 0:4){
&lt;br&gt;&lt;br&gt;for (d in 0:4){
&lt;br&gt;&lt;br&gt;for (e in 0:4){
&lt;br&gt;&lt;br&gt;for (f in 0:4){
&lt;br&gt;&lt;br&gt;for (g in 0:4){
&lt;br&gt;&lt;br&gt;for (h in 0:4){
&lt;br&gt;&lt;br&gt;for (i in 0:4){
&lt;br&gt;&lt;br&gt;for (j in 0:4){
&lt;br&gt;&lt;br&gt;for (k in 0:4){
&lt;br&gt;&lt;br&gt;for (l in 0:4){
&lt;br&gt;&lt;br&gt;for (m in 0:4){
&lt;br&gt;&lt;br&gt;for (n in 0:4){
&lt;br&gt;&lt;br&gt;for (o in 0:4){
&lt;br&gt;&lt;br&gt;for (p in 0:4){
&lt;br&gt;&lt;br&gt;for (q in 0:4){
&lt;br&gt;&lt;br&gt;for (r in 0:4){
&lt;br&gt;&lt;br&gt;for (s in 0:4){
&lt;br&gt;&lt;br&gt;for (u in 0:4){
&lt;br&gt;&lt;br&gt;for (v in 0:4){
&lt;br&gt;&lt;br&gt;vec&amp;lt;-list(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v)
&lt;br&gt;&lt;br&gt;write.table(vec,file=&amp;quot;C:/Documents and Settings/My
&lt;br&gt;Documents/permutations.txt&amp;quot;,sep=&amp;quot;;&amp;quot;,col.names=FALSE, row.names=FALSE,
&lt;br&gt;append=TRUE)
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;____________________________
&lt;br&gt;&lt;br&gt;Elke Moons, PhD
&lt;br&gt;&lt;br&gt;Transportation Research Institute/ 
&lt;br&gt;&lt;br&gt;Instituut voor Mobiliteit (IMOB)
&lt;br&gt;&lt;br&gt;Wetenschapspark 1, bus 15
&lt;br&gt;&lt;br&gt;3590 Diepenbeek
&lt;br&gt;&lt;br&gt;BELGIUM
&lt;br&gt;&lt;br&gt;Tel. +32-11-26.91.26
&lt;br&gt;&lt;br&gt;Fax. +32-11-26.91.99
&lt;br&gt;&lt;br&gt;E-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203392&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;elke.moons@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203392&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide
&lt;br&gt;&lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203392&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Permutations-tp17203005p17203392.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203115</id>
	<title>Re: (PR#11281) Bug in R 2.7 for over long lines</title>
	<published>2008-05-13T00:50:24Z</published>
	<updated>2008-05-13T00:50:24Z</updated>
	<author>
		<name>Soeren Sonnenburg-15</name>
	</author>
	<content type="html">On Tue, 2008-05-13 at 09:01 +0200, Martin Maechler wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;BDR&amp;quot; =3D=3D Prof Brian Ripley &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203115&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; on Tue, 13 May 2008 07:32:43 +0100 (BST) writes:
&lt;br&gt;&amp;gt;=20
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; BDR&amp;gt; This example does not crash in R 2.7.0, R-patched nor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; BDR&amp;gt; R-devel (r45677) for me (x86_64 F8 Linux.) &amp;nbsp;It also
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; BDR&amp;gt; does not crash with the CRAN build of R 2.7.0 on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; BDR&amp;gt; Windows XP.
&lt;br&gt;&amp;gt;=20
&lt;br&gt;&amp;gt; Neither does it for me in R 2.7.0=20
&lt;br&gt;&amp;gt; on two x86_64 Linux platforms: =20
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Ubuntu 8.04 and Redhat Enterprise 5.1
&lt;/div&gt;&lt;br&gt;=EF=BB=BFsource(&amp;quot;&lt;a href=&quot;http://nn7.de/debugging/Features.R&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nn7.de/debugging/Features.R&lt;/a&gt;&amp;quot;)
&lt;br&gt;&lt;br&gt;crashes here on debian-sid (32bit x86 architecture).
&lt;br&gt;&lt;br&gt;@dirk: could you give it a go on some debian x86 and amd64 machine?
&lt;br&gt;&lt;br&gt;Soeren
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203115&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28PR-11281%29-Bug-in-R-2.7-for-over-long-lines-tp17182970p17203115.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203077</id>
	<title>Re: (PR#11281) Bug in R 2.7 for over long lines</title>
	<published>2008-05-13T00:50:01Z</published>
	<updated>2008-05-13T00:50:01Z</updated>
	<author>
		<name>Martin Maechler</name>
	</author>
	<content type="html">&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;SS&amp;quot; == Soeren Sonnenburg &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203077&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-ml@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; on Tue, 13 May 2008 08:17:23 +0200 writes:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; On Mon, 2008-05-12 at 08:39 -0400, Duncan Murdoch wrote:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; On 5/10/2008 5:20 PM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203077&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt; wrote: &amp;gt; On Sat,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 2008-05-10 at 11:19 +0100, Prof Brian Ripley wrote: &amp;gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; You will see the current code is different, and your
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 'fix' is not needed=20 &amp;gt;&amp;gt; nor applies in R-devel.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; would be nice...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt;&amp;gt; You failed to provide an example to reproduce the
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; alleged bug, but the=20
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; well the bug was obvious, I told that I can trigger it
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; and that the &amp;gt; proposed fix fixed it - no need to provide
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; an example.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; But it would be helpful to provide an example, so that we
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; can test the fix. &amp;nbsp;As Brian told you, your fix was no
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; good: it was not against the current code.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; Well it was when I posted it 4 days after R 2.7.0 was
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; released.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; And the bug was very obvious, I mean look at this
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; (quoting from my original report):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SS&amp;gt; char *LongLine = (char *) malloc(nc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SS&amp;gt; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SS&amp;gt; LongLine[nc] = '\0';
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SS&amp;gt; note that LongLine is only nc chars long, so the LongLine[nc]='\0' might
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SS&amp;gt; be an out of bounds write. the fix would be to do 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SS&amp;gt; char *LongLine = (char *) malloc(nc+1);
&lt;br&gt;&lt;br&gt;Yes, you are right about this (first part of your report).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; Anyway an example that will crash R 2.7.0 is here
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; &lt;a href=&quot;http://nn7.de/debugging/Features.R&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nn7.de/debugging/Features.R&lt;/a&gt;&amp;nbsp;.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt;&amp;gt; issue does seem to be using lines beyond the
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; documented line length.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; exactly. one can crash R with too long lines.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Then the bug is also in your code, for sending lines that
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; are too long. &amp;nbsp;R shouldn't crash on user error, but
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;quot;don't do that&amp;quot; is an appropriate response.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; I would just like to see this bug in R fixed.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt;&amp;gt; So it would have only affected people who did that
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; ....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; or use auto-generated code like e.g. swig produces.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Then swig should be modified to produce valid code.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; Sure. That's what I am trying to achieve.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; [...]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &amp;gt; I don't intend to play with devel versions of R, I was
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; just trying to &amp;gt; get swig for R2.7 to work. Sorry that it
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; triggered a bug in R. =EF=BB=BFI w= &amp;gt; ill &amp;gt; try R2.7.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; when it is released and report back.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; If you aren't interested in being helpful by testing
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; fixes for your code, then I doubt if any of us are going
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; to go out of our way to help you with your errors.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; ﻿﻿I still don't understand what I could have possibly
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; done wrong in my initial post
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; ﻿(&lt;a href=&quot;http://article.gmane.org/gmane.comp.lang.r.devel/16243/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://article.gmane.org/gmane.comp.lang.r.devel/16243/&lt;/a&gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; to cause this meta-discussion.
&lt;br&gt;&lt;br&gt;I think it was partly misunderstanding on both sides.
&lt;br&gt;&lt;br&gt;The bug *was* indeed fixed only a couple of hours after your report :
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt; r45496 | ... | 2008-04-25 09:37:53 +0200 (Fri, 25 Apr 2008) |
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt; change long-standing out-by-one error for invalid input
&lt;br&gt;&lt;br&gt;I agree it would have been kind if we had thanked you
&lt;br&gt;and had told you that the bug actually had been fixed.
&lt;br&gt;Sometimes this if forgotten because of busy &amp;quot;schedules&amp;quot; ...
&lt;br&gt;So let me give you late 
&lt;br&gt;&amp;nbsp; &amp;nbsp;** Thank you very much !! ** 
&lt;br&gt;for the original bug report.
&lt;br&gt;&lt;br&gt;Martin Maechler, ETH Zurich
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; But to put things in the right light. There is no bug in
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; my code (this time). But in R. And I did not ask for
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; help - to the contrary: I've pointed out a trivial to
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; fix bug in R 2.7.0 and showed how it could be fixed.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; The problem is that I am not really an R user, but just
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; wanted to support the R community by porting shogun to R
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; in the hope that it may be useful for some. To achieve
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; this I am fixing bugs in the R swig interface generator
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; and now also R. So the detour I am taking here is
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; massive and I have not received any help (except from
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; Dirk so far).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; So if possible lets stay focused on the bug: Dirk helped
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; me to get the R from svn-trunk (it says R 2.8 at
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; startup) to compile and voila, sourcing the code from
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; above does not generate any crashes anymore. So the
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; rewrite of gram.c fixes it I guess.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; Soeren
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203077&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28PR-11281%29-Bug-in-R-2.7-for-over-long-lines-tp17182970p17203077.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17203005</id>
	<title>Permutations</title>
	<published>2008-05-13T00:49:20Z</published>
	<updated>2008-05-13T00:49:20Z</updated>
	<author>
		<name>Elke Moons</name>
	</author>
	<content type="html">Dear R-users,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Is there an easy way to determine all possible vectors of length 21 with
&lt;br&gt;each entry having permutations from 0 to 4, instead of doing it like this?
&lt;br&gt;It really takes up too much time, and I am convinced that there exists
&lt;br&gt;something easier.
&lt;br&gt;&lt;br&gt;Can you help me? Thank you in advance! 
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Elke
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;for (a in 0:4){
&lt;br&gt;&lt;br&gt;for (b in 0:4){
&lt;br&gt;&lt;br&gt;for (c in 0:4){
&lt;br&gt;&lt;br&gt;for (d in 0:4){
&lt;br&gt;&lt;br&gt;for (e in 0:4){
&lt;br&gt;&lt;br&gt;for (f in 0:4){
&lt;br&gt;&lt;br&gt;for (g in 0:4){
&lt;br&gt;&lt;br&gt;for (h in 0:4){
&lt;br&gt;&lt;br&gt;for (i in 0:4){
&lt;br&gt;&lt;br&gt;for (j in 0:4){
&lt;br&gt;&lt;br&gt;for (k in 0:4){
&lt;br&gt;&lt;br&gt;for (l in 0:4){
&lt;br&gt;&lt;br&gt;for (m in 0:4){
&lt;br&gt;&lt;br&gt;for (n in 0:4){
&lt;br&gt;&lt;br&gt;for (o in 0:4){
&lt;br&gt;&lt;br&gt;for (p in 0:4){
&lt;br&gt;&lt;br&gt;for (q in 0:4){
&lt;br&gt;&lt;br&gt;for (r in 0:4){
&lt;br&gt;&lt;br&gt;for (s in 0:4){
&lt;br&gt;&lt;br&gt;for (u in 0:4){
&lt;br&gt;&lt;br&gt;for (v in 0:4){
&lt;br&gt;&lt;br&gt;vec&amp;lt;-list(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v)
&lt;br&gt;&lt;br&gt;write.table(vec,file=&amp;quot;C:/Documents and Settings/My
&lt;br&gt;Documents/permutations.txt&amp;quot;,sep=&amp;quot;;&amp;quot;,col.names=FALSE, row.names=FALSE,
&lt;br&gt;append=TRUE)
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;____________________________
&lt;br&gt;&lt;br&gt;Elke Moons, PhD
&lt;br&gt;&lt;br&gt;Transportation Research Institute/ 
&lt;br&gt;&lt;br&gt;Instituut voor Mobiliteit (IMOB)
&lt;br&gt;&lt;br&gt;Wetenschapspark 1, bus 15
&lt;br&gt;&lt;br&gt;3590 Diepenbeek
&lt;br&gt;&lt;br&gt;BELGIUM
&lt;br&gt;&lt;br&gt;Tel. +32-11-26.91.26
&lt;br&gt;&lt;br&gt;Fax. +32-11-26.91.99
&lt;br&gt;&lt;br&gt;E-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203005&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;elke.moons@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17203005&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Permutations-tp17203005p17203005.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202966</id>
	<title>Re: (PR#11281) Bug in R 2.7 for over long lines (crasher+proposed fix!)</title>
	<published>2008-05-13T00:45:12Z</published>
	<updated>2008-05-13T00:45:12Z</updated>
	<author>
		<name>Antonio, Fabio Di Narzo</name>
	</author>
	<content type="html">2008/5/13 &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maechler@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;BDR&amp;quot; == Prof Brian Ripley &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; on Tue, 13 May 2008 07:32:43 +0100 (BST) writes:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; This example does not crash in R 2.7.0, R-patched nor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; R-devel (r45677) for me (x86_64 F8 Linux.) &amp;nbsp;It also
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; does not crash with the CRAN build of R 2.7.0 on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; Windows XP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Neither does it for me in R 2.7.0
&lt;br&gt;&amp;gt; on two x86_64 Linux platforms:
&lt;br&gt;&amp;gt; &amp;nbsp; Ubuntu 8.04 and Redhat Enterprise 5.1
&lt;/div&gt;&lt;br&gt;I get a segfault.
&lt;br&gt;&lt;br&gt;&amp;gt; sessionInfo()
&lt;br&gt;R version 2.7.0 (2008-04-22)
&lt;br&gt;i686-pc-linux-gnu
&lt;br&gt;&lt;br&gt;locale:
&lt;br&gt;LC_CTYPE=it_IT.UTF-8;LC_NUMERIC=C;LC_TIME=it_IT.UTF-8;LC_COLLATE=it_IT.UTF-8;LC_MONETARY=C;LC_MESSAGES=it_IT.UTF-8;LC_PAPER=it_IT.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=it_IT.UTF-8;LC_IDENTIFICATION=C
&lt;br&gt;&lt;br&gt;attached base packages:
&lt;br&gt;[1] stats &amp;nbsp; &amp;nbsp; graphics &amp;nbsp;grDevices utils &amp;nbsp; &amp;nbsp; datasets &amp;nbsp;methods &amp;nbsp; base
&lt;br&gt;&lt;br&gt;$ uname -r
&lt;br&gt;2.6.22-14-generic
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; On Tue, 13 May 2008, Soeren Sonnenburg wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; On Mon, 2008-05-12 at 11:10 +0200,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maechler@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; Hi Soeren,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;SS&amp;quot; == Soeren Sonnenburg &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt;&amp;gt; on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sat, 10 May 2008 05:32:14 +0000 writes:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; On Sat, 2008-04-26 at 09:38 +0200, Peter Dalgaard wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt; wrote: &amp;gt; OK, I am just sending it
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; here &amp;gt;&amp;gt; too as it looks like &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-devel@...&lt;/a&gt; &amp;gt; is
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; not the &amp;gt;&amp;gt; right place:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I think it was seen there too, just that noone got
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; around &amp;gt;&amp;gt; to reply. In R-bugs, there's a filing system
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; so that it &amp;gt;&amp;gt; won't be completely forgotten...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; Looks like no one cares about this :(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; Just &amp;quot;looks like&amp;quot; but it aint...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; What should I do now? I mean I pointed directly to the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SS&amp;gt; bug and did show how it could be fixed....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; I'm not among the parse experts within R-core, but I
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; think the main problem with your report is that you talk
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; about a crash but do not provide &amp;quot;self-contained
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; reproducible&amp;quot; code to produce such a crash, but just the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; assertion that you get crashes when working on R &amp;lt;-&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; Swig interaction. &amp;nbsp;Can you construct simple R code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; producing the crash?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; No. I put however difficult autogenerated (~800k big!) .R
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; code that will crash R 2.7 at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;http://nn7.de/debugging/Features.R&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nn7.de/debugging/Features.R&lt;/a&gt;&amp;nbsp;for everyone to enjoy
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; :)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; Sourcing it will crash R2.7.0 (without my fix) but not
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; 2.8.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; Soeren
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Brian D. Ripley, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; Professor of Applied Statistics,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; &lt;a href=&quot;http://www.stats.ox.ac.uk/~ripley/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.stats.ox.ac.uk/~ripley/&lt;/a&gt;&amp;nbsp;University of
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BDR&amp;gt; 272595
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Antonio, Fabio Di Narzo
&lt;br&gt;Ph.D. student at
&lt;br&gt;Department of Statistical Sciences
&lt;br&gt;University of Bologna, Italy
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202966&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28PR-11281%29-Bug-in-R-2.7-for-over-long-lines-%28crasher%2Bproposed-fix%21%29-tp17202440p17202966.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202951</id>
	<title>Re: Left censored responses in mixed effects models(II)</title>
	<published>2008-05-13T00:45:03Z</published>
	<updated>2008-05-13T00:45:03Z</updated>
	<author>
		<name>giovanni parrinello</name>
	</author>
	<content type="html">Dear Bert,
&lt;br&gt;you can also translate in nlme, as I'm trying to do, the approach of 
&lt;br&gt;Thiébaut and *Gadda( *Mixed models for longitudinal left-censored 
&lt;br&gt;repeated measures. Computer Methods and Programs in Biomedicine 74 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.informatik.uni-trier.de/%7Eley/db/journals/cmpb/cmpb74.html#ThiebautJ04&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.informatik.uni-trier.de/%7Eley/db/journals/cmpb/cmpb74.html#ThiebautJ04&lt;/a&gt;&amp;gt;(3): 
&lt;br&gt;&amp;lt;javascript:void(0)&amp;gt;(2004)) written in nlmixed(SAS)
&lt;br&gt;Giovanni
&lt;br&gt;Bert Gunter ha scritto:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear R Fellow-Travellers:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is your recommended way of dealing with a left-censored response
&lt;br&gt;&amp;gt; (non-detects) in (linear Gaussian) mixed effects models?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Specifics: Response is a numeric positive measurement (of volume, actually);
&lt;br&gt;&amp;gt; but when it falls below some unknown and slightly random value (depending on
&lt;br&gt;&amp;gt; how the sample is prepared and measured), it cannot be measured and is
&lt;br&gt;&amp;gt; recorded as 0. 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is some statistical literature on this, but I was unable to find
&lt;br&gt;&amp;gt; anything that appeared to me to implement a strategy in any R package. If it
&lt;br&gt;&amp;gt; matters, I am less interested in inference than in removing possible bias in
&lt;br&gt;&amp;gt; estimation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Feel free to respond off-list if you feel that this would not be of general
&lt;br&gt;&amp;gt; interest.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bert Gunter
&lt;br&gt;&amp;gt; Genentech
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202951&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt; PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;dr. Giovanni Parrinello
&lt;br&gt;Department of Biotecnologies
&lt;br&gt;Medical Statistics Unit
&lt;br&gt;University of Brescia
&lt;br&gt;Viale Europa, 11 25123 Brescia
&lt;br&gt;email: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202951&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;parrinel@...&lt;/a&gt;
&lt;br&gt;Phone: +390303717528
&lt;br&gt;Fax: +390303717488
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202951&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Left-censored-responses-in-mixed-effects-models-tp17190869p17202951.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202839</id>
	<title>Re: Left censored responses in mixed effects models</title>
	<published>2008-05-13T00:37:36Z</published>
	<updated>2008-05-13T00:37:36Z</updated>
	<author>
		<name>giovanni parrinello</name>
	</author>
	<content type="html">Dear Bert,
&lt;br&gt;a solution is the 'package'
&lt;br&gt;censre3 by &amp;nbsp;Hughes JP
&lt;br&gt;Reference: Hughes JP: Mixed effects models with censored data with 
&lt;br&gt;application to HIV RNA levels. &amp;nbsp;Biometrics, 55:625-629, 1999.
&lt;br&gt;&lt;br&gt;Giovanni
&lt;br&gt;&lt;br&gt;Don MacQueen ha scritto:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I assume you've looked at the NADA package(?) While I don't believe it 
&lt;br&gt;&amp;gt; goes as far as dealing the mixed effects models, it might give you a 
&lt;br&gt;&amp;gt; starting point, and possibly some additional references.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Don
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; At 9:08 AM -0700 5/12/08, Bert Gunter wrote:
&lt;br&gt;&amp;gt;&amp;gt; Dear R Fellow-Travellers:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What is your recommended way of dealing with a left-censored response
&lt;br&gt;&amp;gt;&amp;gt; (non-detects) in (linear Gaussian) mixed effects models?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Specifics: Response is a numeric positive measurement (of volume, 
&lt;br&gt;&amp;gt;&amp;gt; actually);
&lt;br&gt;&amp;gt;&amp;gt; but when it falls below some unknown and slightly random value 
&lt;br&gt;&amp;gt;&amp;gt; (depending on
&lt;br&gt;&amp;gt;&amp;gt; how the sample is prepared and measured), it cannot be measured and is
&lt;br&gt;&amp;gt;&amp;gt; recorded as 0.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There is some statistical literature on this, but I was unable to find
&lt;br&gt;&amp;gt;&amp;gt; anything that appeared to me to implement a strategy in any R 
&lt;br&gt;&amp;gt;&amp;gt; package. If it
&lt;br&gt;&amp;gt;&amp;gt; matters, I am less interested in inference than in removing possible 
&lt;br&gt;&amp;gt;&amp;gt; bias in
&lt;br&gt;&amp;gt;&amp;gt; estimation.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Feel free to respond off-list if you feel that this would not be of 
&lt;br&gt;&amp;gt;&amp;gt; general
&lt;br&gt;&amp;gt;&amp;gt; interest.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Bert Gunter
&lt;br&gt;&amp;gt;&amp;gt; Genentech
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202839&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; PLEASE do read the posting guide 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;dr. Giovanni Parrinello
&lt;br&gt;Department of Biotecnologies
&lt;br&gt;Medical Statistics Unit
&lt;br&gt;University of Brescia
&lt;br&gt;Viale Europa, 11 25123 Brescia
&lt;br&gt;email: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202839&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;parrinel@...&lt;/a&gt;
&lt;br&gt;Phone: +390303717528
&lt;br&gt;Fax: +390303717488
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202839&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Left-censored-responses-in-mixed-effects-models-tp17190869p17202839.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202561</id>
	<title>Re: ggplot2: font size mismatch for pdf output</title>
	<published>2008-05-13T00:18:04Z</published>
	<updated>2008-05-13T00:18:04Z</updated>
	<author>
		<name>Xavier Chardon</name>
	</author>
	<content type="html">What you can do is change the parameter &amp;quot;pointsize&amp;quot; when creating the 
&lt;br&gt;device. See ?pdf. It will change the size of all texts (labels, legend, 
&lt;br&gt;title...) at the same time. I tried it with png, it works quite well 
&lt;br&gt;(provided you use the latest versions of everything, including cairo, I 
&lt;br&gt;think).
&lt;br&gt;&lt;br&gt;Xavier
&lt;br&gt;&lt;br&gt;hadley wickham a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; More generally, how do I control the size of fonts used in legends
&lt;br&gt;&amp;gt;&amp;gt; and axis labels?
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is no general way (yet) - it is on my customisation to do list,
&lt;br&gt;&amp;gt; which I hope to make progress on over summer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hadley
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Xavier Chardon
&lt;br&gt;Thésard Institut de l'élevage / INRA
&lt;br&gt;Projet ACTA &amp;quot;modélisation environnementale des systèmes bovins et porcins&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202561&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.chardon@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202561&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.chardon@...&lt;/a&gt;
&lt;br&gt;02 23 48 50 91
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202561&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ggplot2%3A-font-size-mismatch-for-pdf-output-tp17188528p17202561.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202448</id>
	<title>Compare columns</title>
	<published>2008-05-13T00:08:03Z</published>
	<updated>2008-05-13T00:08:03Z</updated>
	<author>
		<name>Suhaila Zainudin</name>
	</author>
	<content type="html">Dear R-users,
&lt;br&gt;&lt;br&gt;I have the following 2 files;
&lt;br&gt;&lt;br&gt;A
&lt;br&gt;&lt;br&gt;V1 &amp;nbsp; &amp;nbsp;V2
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;2
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;4
&lt;br&gt;B &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;B &amp;nbsp; &amp;nbsp; &amp;nbsp;4
&lt;br&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp;3
&lt;br&gt;D &amp;nbsp; &amp;nbsp; &amp;nbsp;4
&lt;br&gt;&lt;br&gt;B
&lt;br&gt;&lt;br&gt;V1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;V2
&lt;br&gt;process1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;process2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;process3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3
&lt;br&gt;process4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4
&lt;br&gt;&lt;br&gt;I want to get this output
&lt;br&gt;&lt;br&gt;C
&lt;br&gt;V1 &amp;nbsp; &amp;nbsp;V2 &amp;nbsp; &amp;nbsp; V3
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; process1
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; process2
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; process3
&lt;br&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; process4
&lt;br&gt;B &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; process1
&lt;br&gt;B &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; process4
&lt;br&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; process1
&lt;br&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; process3
&lt;br&gt;D &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; process4
&lt;br&gt;&lt;br&gt;&lt;br&gt;I want to compare A$V2 with B$V2, if it is the same, then append B$V1 to A.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Any tips are highly appreciated. TQVM!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Suhaila Zainudin
&lt;br&gt;PhD Candidate
&lt;br&gt;Universiti Teknologi Malaysia
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[alternative HTML version deleted]]
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202448&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Compare-columns-tp17202448p17202448.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202440</id>
	<title>Re: (PR#11281) Bug in R 2.7 for over long lines (crasher+proposed fix!)</title>
	<published>2008-05-13T00:05:13Z</published>
	<updated>2008-05-13T00:05:13Z</updated>
	<author>
		<name>Martin Maechler</name>
	</author>
	<content type="html">&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;BDR&amp;quot; == Prof Brian Ripley &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; on Tue, 13 May 2008 07:32:43 +0100 (BST) writes:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; This example does not crash in R 2.7.0, R-patched nor
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; R-devel (r45677) for me (x86_64 F8 Linux.) &amp;nbsp;It also
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; does not crash with the CRAN build of R 2.7.0 on
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; Windows XP.
&lt;br&gt;&lt;br&gt;Neither does it for me in R 2.7.0 
&lt;br&gt;on two x86_64 Linux platforms: &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;Ubuntu 8.04 and Redhat Enterprise 5.1
&lt;br&gt;&lt;br&gt;Martin 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; On Tue, 13 May 2008, Soeren Sonnenburg wrote:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; On Mon, 2008-05-12 at 11:10 +0200,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maechler@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; Hi Soeren,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;SS&amp;quot; == Soeren Sonnenburg &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt;&amp;gt; on
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sat, 10 May 2008 05:32:14 +0000 writes:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; On Sat, 2008-04-26 at 09:38 +0200, Peter Dalgaard wrote:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt; wrote: &amp;gt; OK, I am just sending it
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; here &amp;gt;&amp;gt; too as it looks like &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-devel@...&lt;/a&gt; &amp;gt; is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; not the &amp;gt;&amp;gt; right place:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I think it was seen there too, just that noone got
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; around &amp;gt;&amp;gt; to reply. In R-bugs, there's a filing system
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; so that it &amp;gt;&amp;gt; won't be completely forgotten...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; Looks like no one cares about this :(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; Just &amp;quot;looks like&amp;quot; but it aint...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; What should I do now? I mean I pointed directly to the
&lt;br&gt;&amp;nbsp; &amp;nbsp; SS&amp;gt; bug and did show how it could be fixed....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; I'm not among the parse experts within R-core, but I
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; think the main problem with your report is that you talk
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; about a crash but do not provide &amp;quot;self-contained
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; reproducible&amp;quot; code to produce such a crash, but just the
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; assertion that you get crashes when working on R &amp;lt;-&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; Swig interaction. &amp;nbsp;Can you construct simple R code
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; producing the crash?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; No. I put however difficult autogenerated (~800k big!) .R
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; code that will crash R 2.7 at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &lt;a href=&quot;http://nn7.de/debugging/Features.R&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nn7.de/debugging/Features.R&lt;/a&gt;&amp;nbsp;for everyone to enjoy
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; :)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Sourcing it will crash R2.7.0 (without my fix) but not
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 2.8.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Soeren
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Brian D. Ripley, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; Professor of Applied Statistics,
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; &lt;a href=&quot;http://www.stats.ox.ac.uk/~ripley/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.stats.ox.ac.uk/~ripley/&lt;/a&gt;&amp;nbsp;University of
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road,
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865
&lt;br&gt;&amp;nbsp; &amp;nbsp; BDR&amp;gt; 272595
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202440&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28PR-11281%29-Bug-in-R-2.7-for-over-long-lines-%28crasher%2Bproposed-fix%21%29-tp17202440p17202440.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202266</id>
	<title>Re: is.category</title>
	<published>2008-05-12T23:53:07Z</published>
	<updated>2008-05-12T23:53:07Z</updated>
	<author>
		<name>Hans W Borchers</name>
	</author>
	<content type="html">Applejus &amp;lt;ielkhoury &amp;lt;at&amp;gt; gmail.com&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Could someone tell me what the SPLUS &amp;quot;is.category&amp;quot; function do and what is
&lt;br&gt;&amp;gt; its equivalent in R?
&lt;br&gt;&amp;gt; Thank you, I couldn't find any help elsewhere...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&lt;br&gt;If you Web search for &amp;quot;splus help&amp;quot; or similar, you will find, among others,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.uni-muenster.de/ZIV/Mitarbeiter/BennoSueselbeck/s-html/shelp.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.uni-muenster.de/ZIV/Mitarbeiter/BennoSueselbeck/s-html/shelp.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;and there under &amp;quot;is.category&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;quot;Creates or tests for categorical objects (vectors with a &amp;quot;levels&amp;quot; attribute).
&lt;br&gt;&amp;nbsp; &amp;nbsp;This function is deprecated; factor or ordered are now preferred.&amp;quot;
&lt;br&gt;&lt;br&gt;Hans Werner
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202266&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-help@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-help&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-help&lt;/a&gt;&lt;br&gt;PLEASE do read the posting guide &lt;a href=&quot;http://www.R-project.org/posting-guide.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.R-project.org/posting-guide.html&lt;/a&gt;&lt;br&gt;and provide commented, minimal, self-contained, reproducible code.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-help-f13820.html&quot; embed=&quot;fixTarget[13820]&quot; target=&quot;_top&quot; &gt;R help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/is.category-tp17190000p17202266.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202045</id>
	<title>Re: (PR#11281) Bug in R 2.7 for over long lines (crasher+proposed</title>
	<published>2008-05-12T23:35:16Z</published>
	<updated>2008-05-12T23:35:16Z</updated>
	<author>
		<name>Prof Brian Ripley</name>
	</author>
	<content type="html">This example does not crash in R 2.7.0, R-patched nor R-devel (r45677) for 
&lt;br&gt;me (x86_64 F8 Linux.) &amp;nbsp;It also does not crash with the CRAN build of R 
&lt;br&gt;2.7.0 on Windows XP.
&lt;br&gt;&lt;br&gt;On Tue, 13 May 2008, Soeren Sonnenburg wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 2008-05-12 at 11:10 +0200, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maechler@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Soeren,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;SS&amp;quot; == Soeren Sonnenburg &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202045&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; on Sat, 10 May 2008 05:32:14 +0000 writes:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; SS&amp;gt; On Sat, 2008-04-26 at 09:38 +0200, Peter Dalgaard wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202045&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt; wrote: &amp;gt; OK, I am just sending it here
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; too as it looks like &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202045&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r-devel@...&lt;/a&gt; &amp;gt; is not the
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; right place:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; I think it was seen there too, just that noone got around
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; to reply. In R-bugs, there's a filing system so that it
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; won't be completely forgotten...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; SS&amp;gt; Looks like no one cares about this :(
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Just &amp;quot;looks like&amp;quot; but it aint...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; SS&amp;gt; What should I do now? I mean I pointed directly to the
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; SS&amp;gt; bug and did show how it could be fixed....
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm not among the parse experts within R-core, but I think the
&lt;br&gt;&amp;gt;&amp;gt; main problem with your report is that
&lt;br&gt;&amp;gt;&amp;gt; you talk about a crash but do not provide &amp;quot;self-contained
&lt;br&gt;&amp;gt;&amp;gt; reproducible&amp;quot; code to produce such a crash, but just the
&lt;br&gt;&amp;gt;&amp;gt; assertion that you get crashes when working on R &amp;lt;-&amp;gt; Swig
&lt;br&gt;&amp;gt;&amp;gt; interaction.
&lt;br&gt;&amp;gt;&amp;gt; Can you construct simple R code producing the crash?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; No. I put however difficult autogenerated (~800k big!) .R code that will
&lt;br&gt;&amp;gt; crash R 2.7 at &lt;a href=&quot;http://nn7.de/debugging/Features.R&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nn7.de/debugging/Features.R&lt;/a&gt;&amp;nbsp;for everyone to
&lt;br&gt;&amp;gt; enjoy :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sourcing it will crash R2.7.0 (without my fix) but not 2.8.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Soeren
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202045&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Brian D. Ripley, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202045&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ripley@...&lt;/a&gt;
&lt;br&gt;Professor of Applied Statistics, &amp;nbsp;&lt;a href=&quot;http://www.stats.ox.ac.uk/~ripley/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.stats.ox.ac.uk/~ripley/&lt;/a&gt;&lt;br&gt;University of Oxford, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tel: &amp;nbsp;+44 1865 272861 (self)
&lt;br&gt;1 South Parks Road, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +44 1865 272866 (PA)
&lt;br&gt;Oxford OX1 3TG, UK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fax: &amp;nbsp;+44 1865 272595
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202045&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28PR-11281%29-Bug-in-R-2.7-for-over-long-lines-%28crasher%2Bproposed-tp17161901p17202045.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17201982</id>
	<title>Re: (PR#11281) Bug in R 2.7 for over long lines</title>
	<published>2008-05-12T23:17:23Z</published>
	<updated>2008-05-12T23:17:23Z</updated>
	<author>
		<name>Soeren Sonnenburg-15</name>
	</author>
	<content type="html">On Mon, 2008-05-12 at 08:39 -0400, Duncan Murdoch wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 5/10/2008 5:20 PM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17201982&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bugreports@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Sat, 2008-05-10 at 11:19 +0100, Prof Brian Ripley wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; You will see the current code is different, and your 'fix' is not needed=20
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; nor applies in R-devel.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; would be nice...
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; You failed to provide an example to reproduce the alleged bug, but the=20
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; well the bug was obvious, I told that I can trigger it and that the
&lt;br&gt;&amp;gt; &amp;gt; proposed fix fixed it - no need to provide an example.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But it would be helpful to provide an example, so that we can test the 
&lt;br&gt;&amp;gt; fix. &amp;nbsp;As Brian told you, your fix was no good: &amp;nbsp;it was not against the 
&lt;br&gt;&amp;gt; current code.
&lt;/div&gt;&lt;br&gt;Well it was when I posted it 4 days after R 2.7.0 was released. 
&lt;br&gt;&lt;br&gt;And the bug was very obvious, I mean look at this (quoting from my
&lt;br&gt;original report):
&lt;br&gt;&lt;br&gt;char *LongLine = (char *) malloc(nc);
&lt;br&gt;...
&lt;br&gt;LongLine[nc] = '\0';
&lt;br&gt;&lt;br&gt;note that LongLine is only nc chars long, so the LongLine[nc]='\0' might
&lt;br&gt;be an out of bounds write. the fix would be to do 
&lt;br&gt;char *LongLine = (char *) malloc(nc+1);
&lt;br&gt;&lt;br&gt;&lt;br&gt;Anyway an example that will crash R 2.7.0 is here
&lt;br&gt;&lt;a href=&quot;http://nn7.de/debugging/Features.R&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nn7.de/debugging/Features.R&lt;/a&gt;&amp;nbsp;.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; issue does seem to be using lines beyond the documented line length.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; exactly. one can crash R with too long lines.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Then the bug is also in your code, for sending lines that are too long. 
&lt;br&gt;&amp;gt; &amp;nbsp; R shouldn't crash on user error, but &amp;quot;don't do that&amp;quot; is an appropriate 
&lt;br&gt;&amp;gt; response.
&lt;br&gt;&lt;br&gt;I would just like to see this bug in R fixed.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; So it would have only affected people who did that ....
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; or use auto-generated code like e.g. swig produces.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Then swig should be modified to produce valid code.
&lt;br&gt;&lt;br&gt;Sure. That's what I am trying to achieve.
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&amp;gt; &amp;gt; I don't intend to play with devel versions of R, I was just trying to
&lt;br&gt;&amp;gt; &amp;gt; get swig for R2.7 to work. Sorry that it triggered a bug in R. =EF=BB=BFI w=
&lt;br&gt;&amp;gt; &amp;gt; ill
&lt;br&gt;&amp;gt; &amp;gt; try R2.7.1 when it is released and report back.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you aren't interested in being helpful by testing fixes for your 
&lt;br&gt;&amp;gt; code, then I doubt if any of us are going to go out of our way to help 
&lt;br&gt;&amp;gt; you with your errors.
&lt;br&gt;&lt;br&gt;﻿﻿I still don't understand what I could have possibly done wrong 
&lt;br&gt;in my initial
&lt;br&gt;post ﻿(&lt;a href=&quot;http://article.gmane.org/gmane.comp.lang.r.devel/16243/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://article.gmane.org/gmane.comp.lang.r.devel/16243/&lt;/a&gt;)
&lt;br&gt;to cause this meta-discussion.
&lt;br&gt;&lt;br&gt;But to put things in the right light. There is no bug in my code (this
&lt;br&gt;time). But in R. And I did not ask for help - to the contrary: I've
&lt;br&gt;pointed out a trivial to fix bug in R 2.7.0 and showed how it could be
&lt;br&gt;fixed. 
&lt;br&gt;&lt;br&gt;The problem is that I am not really an R user, but just wanted to
&lt;br&gt;support the R community by porting shogun to R in the hope that it may
&lt;br&gt;be useful for some. To achieve this I am fixing bugs in the R swig
&lt;br&gt;interface generator and now also R. So the detour I am taking here is
&lt;br&gt;massive and I have not received any help (except from Dirk so far).
&lt;br&gt;&lt;br&gt;So if possible lets stay focused on the bug: Dirk helped me to get the R
&lt;br&gt;from svn-trunk (it says R 2.8 at startup) to compile and voila, sourcing
&lt;br&gt;the code from above does not generate any crashes anymore. So the
&lt;br&gt;rewrite of gram.c fixes it I guess.
&lt;br&gt;&lt;br&gt;Soeren
&lt;br&gt;&lt;br&gt;______________________________________________
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17201982&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R-devel@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;https://stat.ethz.ch/mailman/listinfo/r-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://stat.ethz.ch/mailman/listinfo/r-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/R-devel-f13821.html&quot; embed=&quot;fixTarget[13821]&quot; target=&quot;_top&quot; &gt;R devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28PR-11281%29-Bug-in-R-2.7-for-over-long-lines-tp17182970p17201982.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17201790</id>
	<title>Re: Format integer</title>
	<published>2008-05-12T23:12:39Z</published>
	<updated>2008-05-12T23:12:39Z</updated>
	<author>
		<name>Prof Brian Ripley</name>
	</author>
	<content type="html">This is one of those problems where the fine details matter.
&lt;br&gt;&lt;br&gt;1) The version of R. &amp;nbsp;I optimized sprintf() for long inputs and a single 
&lt;br&gt;format in R 2.7.0 -- the differences are mainly for multiple inputs and 
&lt;br&gt;where coercion is needed. &amp;nbsp;See also below.
&lt;br&gt;&lt;br&gt;2) The system. &amp;nbsp;My home system with an Intel Core 2 Duo is usually about 
&lt;br&gt;the same speed as my office desktop with dual Opterons. &amp;nbsp;But not here:
&lt;br&gt;&lt;br&gt;Home:
&lt;br&gt;&lt;br&gt;&amp;gt; system.time(a&amp;lt;-formatC(x,digits=10,flag='0'))
&lt;br&gt;&amp;nbsp; &amp;nbsp; user &amp;nbsp;system elapsed
&lt;br&gt;&amp;nbsp; &amp;nbsp;9.705 &amp;nbsp; 0.088 &amp;nbsp; 9.810
&lt;br&gt;&amp;gt; &amp;nbsp;system.time(b&amp;lt;-sprintf(&amp;quot;%011d&amp;quot;,x))
&lt;br&gt;&amp;nbsp; &amp;nbsp; user &amp;nbsp;system elapsed
&lt;br&gt;&amp;nbsp; &amp;nbsp;0.283 &amp;nbsp; 0.000 &amp;nbsp; 0.283
&lt;br&gt;&lt;br&gt;Office:
&lt;br&gt;&lt;br&gt;&amp;