Learn R Programming

lares (version 4.8.4)

try_require: Check if Specific Package is Installed

Description

This function checks library dependencies

Usage

try_require(package, stop = TRUE)

Arguments

package

Character. Name of the library

stop

Boolean. Stop if not installed

See Also

Other Tools: autoline(), bindfiles(), bring_api(), db_download(), db_upload(), export_plot(), export_results(), get_credentials(), h2o_predict_API(), h2o_predict_MOJO(), h2o_predict_binary(), h2o_predict_model(), h2o_selectmodel(), h2o_update(), haveInternet(), image_metadata(), importxlsx(), ip_country(), iter_seeds(), json2vector(), listfiles(), mailSend(), msplit(), myip(), pass(), quiet(), read.file(), statusbar(), tic(), updateLares(), zerovar()

Examples

Run this code
# NOT RUN {
# Check if library "dummy" is installed. If not, do not break as error.
try_require("dummy", stop = FALSE)
# Check if library base is installed. If not, stop and show error
try_require("base", stop = TRUE)
# }

Run the code above in your browser using DataLab