hnr_loop compiles, everything passes R CMD check