Using C++ inside targets2 months ago
Do you need tar_target_cpp()? | The two constructors | How a C++ step differs from the Python/Julia steps | Arguments | Installing Rcpp and checking | Object output (iris example) | File output | Extension packages | Parallel computing with RcppParallel | Bringing an R function into C++ | The function is not part of the compiled library | Where the R function can be defined | Dynamic branching | Compile the C++ code only once across branches | They fall back to the plain pattern on Python and Julia | Several C++ steps in one pipeline | Compile once, reuse in other steps | Reusing a tar_target_cpp() companion library elsewhere | Using more than one library in a step | Current limitations | Step output and tar_polyglot_log() | Rtools note (Windows) | Trade-offs vs Python/Julia