Skip to content

error using R Commander for text file import

3 messages · Krehbiel, Dwight, Uwe Ligges, John Fox

#
I am getting the following error on  iMac running Mac OS 10.5.6; this occurs whenever I try to import a text file into R Commander:

Error in splitCmd(command) : unbalanced quotes

Thus, I am unable to import data into R Commander. Any suggestions as to how I might fix this error? I have gotten it many times with more than one installation of R 2.8.1 on this computer.

Dwight Krehbiel
Bethel College
North Newton, KS 67117
USA
#
Krehbiel, Dwight wrote:
So can you tell us exactly what you did and what the resulting code in 
the code windows was and how the data file looks like? Does it contain 
unbalanced quotes, for example?

Uwe Ligges
#
Dear Uwe,

Thanks for trying to field this question, but the error is unlikely to be
related to the data since splitCmd() is used internally to format commands
generated by the Rcmdr so that they fit in the Script window. Unfortunately,
the contents of the Script window are likely to be uninformative since the
offending line won't have been displayed.

Dwight: 

I've never seen this error, nor has anyone else reported it, and as you
might imagine, importing a text file is a very common operation. Although I
can't rule it out at this point, I suspect that if this were a bug in the
Rcmdr, it would have surfaced before.

Some more information about what you did might help. Commands generated by
the Rcmdr shouldn't have unbalanced quotes unless the user enters them,
e.g., in a text field. For example, might you have tried to place quotes
around the name of the data set.

Regards,
 John

------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
On
http://www.R-project.org/posting-guide.html