solving R CMD CHECK example issue