I just installed R 2.6.0 (had R 2.5 before). Here is my problem. Usually, when I work with R I first go to "File->Change dir" and browse to a folder that seats OUTSIDE of the folder "C:\Program Files\R\R-2.6.0" and then create my script there (and open and re-open it there). I never had any problems with R 2.4 or R 2.5. However, after I installed R 2.6.0, R crashes every time I try to open a script - if I work outside the R folder. Interestingly, no problems when I work in the folder "C:\Program Files\R\R-2.6.0" (and create my new folders and subfolders there). Any advice? Dimitri
Dimitri Liakhovitski <ld7631 <at> gmail.com> writes:> > I just installed R 2.6.0 (had R 2.5 before). > Here is my problem. Usually, when I work with R I first go to > "File->Change dir" and browse to a folder that seats OUTSIDE of the > folder "C:\Program Files\R\R-2.6.0" and then create my script there > (and open and re-open it there). I never had any problems with R 2.4 > or R 2.5. > However, after I installed R 2.6.0, R crashes every time I try to open > a script - if I work outside the R folder. Interestingly, no problems > when I work in the folder "C:\Program Files\R\R-2.6.0" (and create my > new folders and subfolders there).Check your path statement (Computer/Properties/Advanced/Environment variables). This happens when some old dll is still one the path; when inside the new \bin, you get the right dll, because it has priority, when outside, the path is searched, and it may find a wrong one. Dieter
Have you tried using 'setwd'? I have no problem with changing directories and executing scripts. Can you provide an example of the script that you are trying to execute? How does it "crash"? Does is to it only when you 'source' it? More information is needed. On Nov 9, 2007 10:21 AM, Dimitri Liakhovitski <ld7631 at gmail.com> wrote:> I just installed R 2.6.0 (had R 2.5 before). > Here is my problem. Usually, when I work with R I first go to > "File->Change dir" and browse to a folder that seats OUTSIDE of the > folder "C:\Program Files\R\R-2.6.0" and then create my script there > (and open and re-open it there). I never had any problems with R 2.4 > or R 2.5. > However, after I installed R 2.6.0, R crashes every time I try to open > a script - if I work outside the R folder. Interestingly, no problems > when I work in the folder "C:\Program Files\R\R-2.6.0" (and create my > new folders and subfolders there). > Any advice? > Dimitri > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve?
What OS is this? (Yes, I can guess it is Windows, but there seems to be a bug in changing working directory under Vista that got exposed in R 2.6.0.) What does 'crash' mean (the posting guide did specifically ask you not to use that word)? This is of course not how the rw-FAQ suggests you make use of R, and the best recommendation is to follow the FAQ's workflow. On Fri, 9 Nov 2007, Dimitri Liakhovitski wrote:> I just installed R 2.6.0 (had R 2.5 before). > Here is my problem. Usually, when I work with R I first go to > "File->Change dir" and browse to a folder that seats OUTSIDE of the > folder "C:\Program Files\R\R-2.6.0" and then create my script there > (and open and re-open it there). I never had any problems with R 2.4 > or R 2.5. > However, after I installed R 2.6.0, R crashes every time I try to open > a script - if I work outside the R folder. Interestingly, no problems > when I work in the folder "C:\Program Files\R\R-2.6.0" (and create my > new folders and subfolders there). > Any advice? > Dimitri > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595