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

From: Jérôme Lemaître <>
Date: Fri, 9 Nov 2007 10:31:11 -0500

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:

  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 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
(418) 656-2131 #2917

-----Message d'origine-----
De : Duncan Murdoch [] Envoyé : 8 novembre 2007 06:10
À :
Cc :; Objet : Re: [Rd] R crashes when I open R files in R (PR#10402)

On 06/11/2007 9:05 AM, wrote:
> Full_Name: Jerome Lemaitre
> Version: 2.6.0
> OS: Windows XP
> Submission from: (NULL) (
> 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
> 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,
> 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 mailing list Received on Fri 09 Nov 2007 - 16:37:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 09 Nov 2007 - 19:31:00 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.