Skip to content

Where to find the base R source code

December 17, 2012

I recently wanted to figure out what the solve function in base R does. But the main meat of the function is buried in C and Fortran code. No problem…all of this stuff is conveniently available here:

https://github.com/SurajGupta/r-source

If you have a github account, this command from a terminal will get you a copy of the R source code on your machine:

git clone https://github.com/SurajGupta/r-source.git

This can take a while, but the nice thing is that once you have it you don’t need to be connected to the internet.

Advertisements
One Comment leave one →
  1. January 3, 2013 1:36 am

    Winston Chang also has one — it’s mirrored daily (I think) — at `https://github.com/wch/r-source` . You can also do it via SVN from https://svn.r-project.org/R/trunk/ (something like `svn checkout …`

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: