removed inference.r dependence on brooks library