add formatR tidying option (closes #78)