Fix R CMD check warnings