Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205491

Finding source code of R packages and potentially making changes

$
0
0

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?


Viewing all articles
Browse latest Browse all 205491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>