r and patient