completeme icon indicating copy to clipboard operation
completeme copied to clipboard

current_function() only handles the case where there is no namespace

Open ajwtech opened this issue 5 years ago • 3 comments

when using completeme::return_unless(completeme::current_function(env) == "createEntity") it will not return true for pfsrsdk::createEntity() but will for createEntity().

ajwtech avatar Apr 18 '19 14:04 ajwtech

Going to work on this now.

ajwtech avatar Apr 18 '19 15:04 ajwtech

Found that this goes much deeper. The Regex just takes the entire linebuffer up to the first opened parenthesis and then compares that. Unfortunately the function guessing that was implemented in rcompgen seems to be gone now that it is implemented as part of R utils package. it is still in the documentation but it doesnt exist. I might try and recreate it from the old github repo.

ajwtech avatar Apr 24 '19 20:04 ajwtech

I face the same issue. What is the situation on solving it, @jimhester?

GegznaV avatar Mar 22 '20 12:03 GegznaV