Codes Related to R