I would like to find and read the source code of an R package. Let's say I would like to find purrr and figure out the difference between map_chr() and find out if it is using lapply().
purrr directory has the following files:
DESCRIPTION INDEX LICENSE Meta NAMESPACE NEWS.md R doc help html libs
I know that purrr has a github repository and that is it also on CRAN. But am not able to find out where its functions are defined. Should I do this within R? And if necessary make changes there? What if some package has some parts written in C or Python?
For example, purrr has .libs/purrr.so which I assume is compiled C code. Where exactly is map_chr() defined within purrr?