variable changed to ncols
error warning update
ROxygen documentation