From murdoch at stats.uwo.ca  Fri Nov  9 16:47:06 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 09 Nov 2007 10:47:06 -0500
Subject: [Rd] R crashes when I open R files in R (PR#10402)
In-Reply-To: <003801c822e5$8f14f670$ad3ee350$@lemaitre.1@ulaval.ca>
References: <20071106140523.08BC0283461C@mail.pubhealth.ku.dk>
	<4732EE86.3080302@stats.uwo.ca>
	<003801c822e5$8f14f670$ad3ee350$@lemaitre.1@ulaval.ca>
Message-ID: <473480FA.4010304@stats.uwo.ca>

On 11/9/2007 10:31 AM, J?r?me Lema?tre wrote:
> Dear Duncan,
> 
> I thank you very much for your attention and I apologize for the few
> information. Here is some more... I have made some tests and I think that I
> have found the problem.
> The thing is that R crashes when both of the followings happen:

Thanks, I can reproduce it now.  Looks as though we've got a buffer 
somewhere that's too short.

I'll track it down and fix it.

Duncan Murdoch

> 
> 1) The name of the script (a file saved as R file, e.g. "test.R" through the
> command "File/Save as" in a R session) has more than 5 characters.
> Capitalization, numbers of letters do not seem to matter.
> 
> 2) The location of the script is in a subfolder of third order as compared
> to the R session.
> 
> 
> For example, my R session is in:
> C:\Documents and Settings\Administrateur\Mes documents\Analyses\AnalysesGUD\
> 
> So I'm able to open any R file, whatever the number of character in its
> name, if it is located in
> C:\Documents and Settings\Administrateur\Mes documents\Analyses\AnalysesGUD\
> 
> Or in
> C:\Documents and Settings\Administrateur\Mes
> documents\Analyses\AnalysesGUD\PourArticle\
> 
> Or in 
> C:\Documents and Settings\Administrateur\Mes
> documents\Analyses\AnalysesGUD\PourArticle\Analyses\
> 
> However, it crashes if the name of the R file has more than 5 characters and
> is located in
> C:\Documents and Settings\Administrateur\Mes
> documents\Analyses\AnalysesGUD\PourArticle\Analyses\ModeleDensiT\
> 
> And other subfolders.
> 
> I hope this is enough and that you'll be able to find a way to solve that. 
> Thank you very much for your help.
> 
> 
> 
> 
> J?r?me
> 
> ============
> J?r?me Lema?tre
> Chaire de recherche industrielle CRSNG - Universit? Laval en sylviculture et
> faune
> D?partement de biologie,
> Pavillon Alexandre-Vachon, Local 2044
> Universit? Laval
> Qu?bec, QC  G1K 7P4
> Canada
> (418) 656-2131 #2917
> 
> 
> 
> 
> -----Message d'origine-----
> De : Duncan Murdoch [mailto:murdoch at stats.uwo.ca] 
> Envoy? : 8 novembre 2007 06:10
> ? : jerome.lemaitre.1 at ulaval.ca
> Cc : r-devel at stat.math.ethz.ch; R-bugs at biostat.ku.dk
> Objet : Re: [Rd] R crashes when I open R files in R (PR#10402)
> 
> On 06/11/2007 9:05 AM, jerome.lemaitre.1 at ulaval.ca wrote:
>> Full_Name: Jerome Lemaitre
>> Version: 2.6.0
>> OS: Windows XP
>> Submission from: (NULL) (132.203.202.117)
>> 
>> 
>> Hello,
>> 
>> I have recently downloaded the 2.6.0 version of R and I experience
> troubles that
>> never happened to me with previous versions. 
>> 
>> I open an R session with an R shortcut in "My documents/Analyses".
> However, when
>> I want to open R files such script using "File/open script" R crashes. I
> have
>> made some tests and it appears that the software is more prone to crash
> when the
>> script in not located in the same folder as the R shortcut. For example,
> my
>> script may be in a subfolder: "My documents/Analyses/GLM". 
>> 
>> I hope you will find an easy way to fix this.
> 
> We need to reproduce it first.  I tried to follow your instructions, and 
> didn't see a problem.  Could you please give complete details of a 
> reproducible way to cause the crash, starting from an R session with an 
> empty workspace?  Please be specific about the directory name, the file 
> names, and the contents of the file you are trying to open.
> 
> Duncan Murdoch
> 
>



[Rd] R crashes when I open R files in R (PR#10402)
Duncan Murdoch