Code tools for R