lookup icon indicating copy to clipboard operation
lookup copied to clipboard

Doesn't seem to work with stringi::stri_trans_general

Open fernandovmacedo opened this issue 8 years ago • 2 comments

I have tried to run lookup(stringi::stri_trans_general) and the R function is returned correctly function (str, id) { .Call(C_stri_trans_general, str, id) } but the .Call function source did not appear.

fernandovmacedo avatar May 26 '17 23:05 fernandovmacedo

Thank you for opening the issue, I think this is due to stringi using native routine registration, which is currently not handled by lookup. I will look into this in the near future!

jimhester avatar May 27 '17 06:05 jimhester

So turns out stringi uses a macro in it's native routine registration (https://cran.r-project.org/web/packages/highlight/index.html) which breaks the regular expression lookup uses to find the mapping. I would prefer not to special case packages, so for now stringi is not going to work with lookup.

jimhester avatar Jun 02 '17 20:06 jimhester