HenrikBengtsson / R.oo

R package: R.oo - R Object-Oriented Programming with or without References
https://cran.r-project.org/package=R.oo
20 stars 1 forks source link

Tab completion #16

Closed HenrikBengtsson closed 8 years ago

HenrikBengtsson commented 8 years ago

Add support for tab completion of Object field names, e.g.

.DollarNames.Object <- function(x, pattern="") {
   utils:::findMatches(pattern, names(x))
}

However, findMatches() is not exported from utils. The alternative is to use grep(..., value=TRUE) but alone it causes entered text to be clear if there's no match.

HenrikBengtsson commented 8 years ago

Made a wish to make utils:::findMatches() a public function, cf. https://stat.ethz.ch/pipermail/r-devel/2016-September/073054.html