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

Duncan Murdoch murdoch at stats.uwo.ca
Fri Nov 9 16:47:06 CET 2007


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



More information about the R-devel mailing list