Branch| ---|--- master| develop|
This GitHub is part of * the Travis C++ Tutorial * the Travis R Tutorial
The goal of this project is to have a clean Travis CI build, with specs:
* Build system: qmake
* C++ compiler: gcc
* C++ version: C++98
* Libraries: STL
and Rcpp
* Code coverage: none
* Source: one single file, main.cpp
Less complex builds:
* Use STL only: travis_qmake_gcc_cpp98
* No Rcpp
: travis_r_minimal
This setup allows for independent C++ and R development. The C++ function do_magic_cpp
is used
by both the C++ project and the R package.
domagic.pro
: qmake
project filemain.cpp
: contains the main
functionsrc/do_magic_cpp.h
: header file with the do_magic_cpp
function declarationsrc/do_magic_cpp.cpp
: source file with the do_magic_cpp
function definitionNote that the C++ code is not tested directly. The R package does this.
domagic.Rproj
: RStudio project fileR/do_magic_r.R
: defines the do_magic_r
function, which calls the do_magic_cpp
function/tests/testthat/test-do_magic.R
: tests the do_magic_r
functionAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.