Currently, nvimcom::nvim.print() does not support functions with namespace, e.g.:
dplyr::filter(mtcars, mpg > 20)
^--- cursor here
> nvim.print("dplyr::filter", "mtcars")
Error in get(object) : object 'dplyr::filter' not found
In addition: Warning message:
In nvim.print("dplyr::filter", "mtcars") : object 'dplyr::filter' not found
This PR fixes this, besides other enhancements, including:
Correct the logic for searching S3 Methods, i.e. using cls in the for loop, instead of objclass
Pull request overview
Currently,
nvimcom::nvim.print()
does not support functions with namespace, e.g.:This PR fixes this, besides other enhancements, including:
cls
in the for loop, instead ofobjclass
.newobj
in the enclosing environment