# Test the CXX compiler
if(cxx_info()$available){
testprog <- '#include \nint main() {std::cout << "Hello World!";}'
writeLines(testprog, con = 'testprog.cc')
make('testprog')
# Test and cleanup
system('./testprog')
unlink('testprog*', recursive = TRUE)
}
# Run a program from a make variable
make_call('$(CXX)', '--version')
# Where your makeconf is stored:
make_info()
Run the code above in your browser using DataLab