powered by
If running R in interactive mode, the user is prompted for installing missing packages. If running in batch mode an error is thrown.
nice_require(pkg, reason)
Package name.
A status message that informs the user why the package is needed.
Nothing
nice_require("base", "is required to do anything at all")
Run the code above in your browser using DataLab