pkgbuild (version 1.0.0)

has_compiler: Is a compiler available?

Description

has_devel returns TRUE or FALSE. check_devel throws an error if you don't developer tools installed. Implementation based on a suggestion by Simon Urbanek. End-users (particularly those on Windows) should generally run check_build_tools() rather than check_compiler().

Usage

has_compiler(debug = FALSE)

check_compiler(debug = FALSE)

Arguments

debug

If TRUE, will print out extra information useful for debugging. If FALSE, it will use result cached from a previous run.

See Also

check_build_tools()

Examples

# NOT RUN {
has_compiler()
check_compiler()

with_build_tools(has_compiler())
# }