Cross-platform wrappers for R CMD config to lookup the availability
of the compiler.
cc_info()
cxx_info()
cxx11_info()
cxx14_info()
cxx17_info()
fc_info()
r_cmd_config(VAR = "--all")Other maketools:
diagnostics,
make(),
pkgconfig,
sysdeps
# This runs 'R CMD CONFIG CXX'
r_cmd_config("CXX")
#> [1] "g++ -std=gnu++17"
# Show C++ config:
cxx_info()
#> $path
#> [1] "g++ -std=gnu++17"
#>
#> $flags
#> [1] "-g -O2"
#>
#> $std
#> NULL
#>
#> $available
#> [1] TRUE
#>
#> $version
#> [1] "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
#>