fixing problems with R CMD check