I am developing a package called scGRN, which is now available in GitHub. I created 3 functions in this package. For the third function scGRN_getNt, it doesn't work normally(just return a data frame with 0 rows). However, if I copy the function content and rename the function say f, f works well in global environment.
( f <- function() {} )
So I was wondering what's the difference between a function in global environment and function wrapped in a package.
I would appreciate it if someone could help. Thanks in advance.