hi all i have a quick question i would like to use the source command but i keep on getting an error eg source("c:/research file/model.txt") the problem seems to be because of the space in the file name but this is how windows references the folder name. i dont want to change the folder name ??/ allan
Use file.choose() instead> source(file.choose())This will open a dialogue box and might be easier for you to find your file. -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Clark Allan Sent: Friday, October 14, 2005 7:06 AM To: r-help at stat.math.ethz.ch Subject: [R] R: source hi all i have a quick question i would like to use the source command but i keep on getting an error eg source("c:/research file/model.txt") the problem seems to be because of the space in the file name but this is how windows references the folder name. i dont want to change the folder name ??/ allan
On 10/14/05, Clark Allan <Allan at stats.uct.ac.za> wrote:> hi all > > i have a quick question > > i would like to use the source command but i keep on getting an error > > eg > > source("c:/research file/model.txt") > > > > the problem seems to be because of the space in the file name but this > is how windows references the folder name.I am able to source files from folders whose names have a space in them so I suspect you have the path or filename wrong. I am using Windows XP with R 2.2.0. The file.choose suggestion already given will work around that or you may wish to double check it using dir/b/s/p from the Windows console.> > i dont want to change the folder name >