Added R infrastructure