fix some R CMD check warnings