R codebase