Resolve R CMD check warnings