[ESS] completion of colnames with spaces

Andreas Leha andreas.leha at med.uni-goettingen.de
Mon Aug 24 12:57:58 CEST 2015


Hi all,

This is question / feature request about completion of colnames with
spaces.  Is it possible to have backquotes inserted automatically when
completing problematic names?  If not, could that be made possible?

Neither auto-complete nor company completion seem to do this right now.


As an example take the following data.frame with point at the '|':

--8<---------------cut here---------------start------------->8---
tmp <- data.frame(`name with space`=1, b=2, check.names = FALSE)
tmp$na|
--8<---------------cut here---------------end--------------->8---

Upon completion (great that it works and offers even problematic names!)
I get

--8<---------------cut here---------------start------------->8---
tmp$name with space
--8<---------------cut here---------------end--------------->8---

but it would be much more useful to actually get

--8<---------------cut here---------------start------------->8-
tmp$`name with space`
--8<---------------cut here---------------end--------------->8-

Thanks,
Andreas



More information about the ESS-help mailing list