Two questions about R integration