hadley/devtools — pull request #71 by halpo (2012-03-08 01:29:46+00:00)
Title: Path manipulations and .onAttach

I thought that the on_path was useful. I expanded on that idea to include more path manipulations available in R/path.R. They are get_path() set_path() and add_path(). Along with the moved over on_path(). I also updated .onAttach in R/zzz.R to use the new functions as well as a more advanced search for the Rtools. It now checks the windows registry for the install location first. If not found will look in the default location. Also windows build environment requires both "Rtools\MinGW\bin" in addition to the "Rtools\MinGW64\bin", since MinGW64 does not contain the regular g++ or gcc. This is now reflected in the path.

One choice that I made different from your original is that the Rtools paths are appended to the end of the path rather than the beginning, but that is easy to fix if there is a compelling reason to.