Initial commit of r lib.