has_compiler {pkgbuild} | R Documentation |
Is a compiler available?
Description
These functions check if a small C file can be compiled, linked, loaded and executed.
has_compiler()
and has_devel()
return TRUE
or FALSE
.
check_compiler()
and check_devel()
throw an error if you don't have developer tools installed.
If the "pkgbuild.has_compiler"
option is set to TRUE
or FALSE
,
no check is carried out, and the value of the option is used.
The implementation is 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 |
See Also
Examples
has_compiler()
check_compiler()
with_build_tools(has_compiler())
[Package pkgbuild version 1.4.4 Index]