more fixes from CRAN comments

switched from require() usage to requireNamespace()