If I do not use devtools, roxygenize() works well after I import knit_print from knitr