I would suggest these "script" lines should not be in np-utils.r. This applies for lines 112 - 121. These should either be in tests, or in usage descriptions (ie, inst/demo).