A super short introduction how to call Nim code from R using the .C
interface.
I’m not an R user normally, so I googled and used this post as a
reference:
https://www.r-bloggers.com/three-ways-to-call-cc-from-r/
Let’s define a simple procedure, which we want Nim to do: