[ESS-bugs] ess-rdired and objects with names like "tmp 1"

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Mon Aug 16 11:13:42 CEST 2010


> Through an error I made an object in an R session called "tmp 1". This
> appeared to make the 'ess-rdired' fail, with the following error
> message:
> 
> > Error in parse(text = (paste("data.class(", my.x, ")", sep = ""))) :
> >   unexpected numeric constant in "data.class(tmp 1"
> 
> I usually don't have objects named like that, but R seems to accept
> them, so maybe ESS should as well. At least the following works fine
> for me (R 2.9.2 on Mac OS X):
> 
> > > assign("tmp 1",1)
> > > get("tmp 1")
> > [1] 1

Thanks for the report, I can repeat it.  It is because I had not tested
it with spaces in variable names.  I will investigate.

Thanks,
Stephen



More information about the ESS-bugs mailing list