[Rcpp-devel] "as" and "wrap" for Boost.Geometry

Economics Guy economics.guy at gmail.com
Tue Feb 18 23:52:08 CET 2014


Is anyone aware of an R package that uses Rcpp and Boost.Geometry?

I am looking for examples to learn from rather than asking many questions
here.


I am trying to write custom as<>() and wrap() converters for the most
common input and output geometry types used in that library.

An example of the use would be:
To use boost::geometry::convex_hull() to take in an n x 2 R matrix find the
convex hull and return an m x 2 R matrix.

I realize there are many ways to find the convex hull of a set in R. I just
used that as an example (and one where I can easily check my code)

I have indeed looked at:

http://gallery.rcpp.org/articles/custom-as-and-wrap-example/

and

http://gallery.rcpp.org/articles/custom-as-and-wrap-example/

But as I am primarily an R programer the Cpp knowledge needed to bride the
gap between the Boost.Geometry documentation and the examples provided in
each is just not there. So I thought I would ask if there was an existing
package that used Boost.Geometry so I could see an example.

Thanks for any help you can provide,

Political Economist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140218/be71b91b/attachment.html>


More information about the Rcpp-devel mailing list