More robust inference for R packages