R: Further understanding of internal function

I read the description, but I'm still confused about the role of the .Internal function. Because it works fine with .Internal(body(mean)) , but not with .Internal(mean) . I suppose this is written in C ++ and compiled, but can you see the code? In which folder is the folder R?

Thank you in advance

+5
source share
1 answer

You can view the source code c as follows:

 pryr::show_c_source(.Internal(mean())) 

From the @Dominic Comtois post here , "the show_c_source function will search on GitHub for the corresponding code snippet in the C source files. Works for .Internal and .Primitive functions."

+7
source

All Articles