Relative Content

Tag Archive for c++rgithubrcpp

How to invoke C++ functions from R?

I am trying to create a package in R with the functions that appear in the folder https://github.com/akirmse/mountains/tree/master/code my objective is to calculate the value of the prominences and collator of the peaks belonging to a raster (*.tif).
In the link to github is this software created but in c++, I would like to know how to invoke these functions in R (I imagine using Rcpp). The main function would be prominence.cpp. I think my failure occurs because I don’t know how to export the functions and classes from the .cpp files. Take a look at the link to github and you will see how many functions (.cpp and .h) we have and how they call each other.
Any advice is welcome!