jimhester / completeme

WIP
Other
40 stars 7 forks source link

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

Open ajwtech opened 5 years ago

ajwtech commented 5 years ago

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

ajwtech commented 5 years ago

Going to work on this now.

ajwtech commented 5 years ago

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.

GegznaV commented 4 years ago

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