I\'m trying to write a function to do a particular job (in my case, analyse a data set for outliers) so the first things I want to do is look at how other people have done s
I recently stumbled across the CRAN Meta repository on GitHub, which basically holds a read-only version of all packages in the CRAN repository. You can search by package name, after selecting the package you'Re after there is a folder called R within, which houses the source code in R.
For example, I searched for the package mboost, clicked on the in and entered the R folder, which shows this list of code.
I haven't had a case yet where I couldn't find what I was after. I also haven't got as far as to see if ALL underlying C/C++ code is shown or linked, but it was for the mboost example above. The c-code was in another top-level folder named src