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."
source share