improve error message for libraries incompatible with base R version