I have installed textpad and tried running R code. But it gives me the following error message. The filename, directory name, or volume label syntax is incorrect. Tool completed with exit code 1 Can you provide any help? I am not a technical person. So the help in detail will be appreciated. Thx [[alternative HTML version deleted]]
Hi Mary, You really have not given us much to go on. An example of the code that you were trying to run would be a great help (as it says down below : PLEASE do read the posting guide. The point about code is important. However the first thing to check is your file path. This is my first guess anyway. Here is the entry in the R FAQ ---------------------------- As R uses C-style string handling, `\' is treated as an escape character, so that for example one can enter a newline as `\n'. When you really need a `\', you have to escape it with another `\'. Thus, in filenames use something like "c:\\data\\money.dat". You can also replace `\' by `/' ("c:/data/money.dat"). -------------------------- I am not familiar with textpad but you might want to have a look at tinn-r which is very closely integrated with R as an alternative editor --- Mary Royerr <mroyerr at gmail.com> wrote:> I have installed textpad and tried running R code. > But it gives me the > following error message. > > > > The filename, directory name, or volume label syntax > is incorrect. > > Tool completed with exit code 1 > > > Can you provide any help? I am not a technical > person. So the help in detail > will be appreciated. > Thx > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >
Thx for the response John and Jim. I had heard before that textpad is a good editor for R codes and one can run the R code from textpad itself and once we do that, the output is displayed on the textpad itself. The reason I wanted to use textpad is to make use of the syntax highlighting a la SAS. So I installed textpad and according to the instructions given in http://www.data-for-all.com/blog/?p=68 . everything worked out fine until I ran the following test code: *setwd('C:/Temp/SampleR') # N<-250 x<-1:N y<-0.53*x +rnorm(x, 0.42*N, 0.14*N) model1<-lm(y~x) print(summary(model1)) * Once I submitted the R code using the SUBMIT R FILE in TOOLS from the toolbar menu the following message displayed. The filename, directory name, or volume label syntax is incorrect. Tool completed with exit code 1 Now even If I run a simple code like *a<-10;a* still the same message is displayed. I am kind of sure it is nothing wrong with the code but something is wrong with the way the textpad installation. Any help? I am not a techie person. Thx for your help On 6/11/07, Mary Royerr <mroyerr@gmail.com> wrote:> > I have installed textpad and tried running R code. But it gives me the > following error message. > > > > The filename, directory name, or volume label syntax is incorrect. > > Tool completed with exit code 1 > > > Can you provide any help? I am not a technical person. So the help in > detail will be appreciated. > Thx >[[alternative HTML version deleted]]