has_compiler

0th

Percentile

Is a compiler available?

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()

Aliases
  • has_compiler
  • check_compiler
  • has_devel
Examples
# NOT RUN {
has_compiler()
check_compiler()

with_build_tools(has_compiler())
# }
Documentation reproduced from package pkgbuild, version 1.0.2, License: GPL-3

Community examples

Looks like there are no examples yet.