has_compiler | R Documentation |
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()
.
has_compiler(debug = FALSE)
check_compiler(debug = FALSE)
debug |
If |
check_build_tools()
has_compiler()
check_compiler()
with_build_tools(has_compiler())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.