Creating a simple R package with C++ code to sum “a + b”

A tutorial on creating a simple R package that includes C++ code for a basic operation (video).
Author

Mauricio “Pachá” Vargas S.

Published

September 23, 2025

If this post is useful to you I kindly ask a minimal donation on Buy Me a Coffee. It shall be used to continue my Open Source efforts. The full explanation is here: A Personal Message from an Open Source Contributor.

You can send me questions for the blog using this form and subscribe to receive an email when there is a new post.

A tutorial on creating a simple R package that includes C++ code for a basic operation.

This video covers the basics of R and C++ syntax and why data types matter a lot on C++ side while R is more permissive. The code is available here.