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