[This article was first published on https://pacha.dev/blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
< !DOCTYPE html>
< charset="utf-8">
< http-equiv="X-UA-Compatible" content="IE=edge">
< name="viewport" content="width=device-width, initial-scale=1.0">
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
< header class="site-top">
HOME 🏠
< !-- categories are printed below this-->
< nav class="sidebar-nav">
Mauricio “Pachá” Vargas Sepúlveda
Blog with notes about R, Shiny, SQL, Python, Linux and C++. This blog is listed on R-Bloggers.
Categories
- Armadillo
- Arrow
- BibTeX
- Blogdown
- C++
- CRAN
- D3po
- DigitalOcean
- DuckDB
- Education
- GitHub
- Google Sheets
- Inkscape
- International Trade
- Interviews
- Kubernetes
- Latex
- Linear algebra
- Linear models
- Linux
- Manjaro
- Microsoft Excel
- NLP
- Non-English datasets
- OS X
- OpenBLAS
- Pelican
- Positron
- PostGIS
- PostgreSQL
- Python
- Quarto
- R
- R Packages
- R-Universe
- R4DS
- REST API
- RStudio
- RStudio Server
- Redatam
- Rick and Morty
- SPSS
- SQL
- Selenium
- Shiny
- Spreadsheets
- Stan
- Stata
- Statistics
- Tabler
- Tidyverse
- Ubuntu
- VSCode
- Windows
- Zotero
- cpp11
- cpp4r
- ggplot2
- golem
- plotnine
- purrr
- wbstats
< header id="title-block-header" class="quarto-title-block default">
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.
Loading…
