# \donttest{
rock::checkPkgs('base');
### Require a version
rock::checkPkgs(rock = "0.5.0");
### This will show the error message
tryCatch(
rock::checkPkgs(
base = "99",
stats = "42.5",
ufs = 20
),
error = print
);
# }
Run the code above in your browser using DataLab