Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocompletion of Rcpp C++Objects fails #1654

Closed
kevinushey opened this issue Oct 24, 2017 · 2 comments
Closed

autocompletion of Rcpp C++Objects fails #1654

kevinushey opened this issue Oct 24, 2017 · 2 comments

Comments

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Oct 24, 2017

From https://support.rstudio.com/hc/en-us/community/posts/115009364048-Rstudio-1-1-383-Issue-with-autocomplete-for-object-methods?page=1#community_comment_115005483728:

> library(mxnet)
> data = mx.symbol.Variable("data")
> data$
Error in grep(pattern, complete(x), value = TRUE) : 
  argument "pattern" is missing, with no default

We need to call .DollarNames() with an explicit empty pattern here:

allNames <- dollarNamesMethod(object)

as not all implementing methods provide a default of "" here.

@jmcphers
Copy link
Member

@jmcphers jmcphers commented Nov 16, 2017

Backported to 1.1 here: c25739a

@dfalty
Copy link

@dfalty dfalty commented Nov 27, 2017

Verified fixed 1.1.392.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants