R CMD check fixes.