libamtrack / ReGenerator

R packagE Generator
MIT License
1 stars 0 forks source link

Make research on alternatives to current R package generator #5

Closed grzanka closed 2 years ago

grzanka commented 3 years ago

Currently most of the code for R package is automatically generated using generator written 10 years ago in R. It has many limitations (like hardcoded versioning basen on SVN).

We should rewrite it or use some existing tool to do same job

grzanka commented 3 years ago

What about rewriting it from scratch in Python ?

ptyszko commented 3 years ago

There are 3 feasible ways to implement this:

  1. Use Doxygen just like the previous generator, parsing it with an available library, first choice seems to be wurfapi, possibly easy to implement if the resulting objects are simple enough, but requires thorough doxygen from the user; could also use cBinder
  2. Use function signatures using a library like robotpy-cppheaderparser - very hard to do, but can be combined with 1 to produce a fairly reliable and partly fool-proof wrapper+roxygen generator
  3. Use an entirely different file for wrapper descriptions in a standardized, easy-to-parse format - less work for us, mor work for the user, and it can't be extended to automatically translate doxygen to roxygen

Any of those methods would likeky be easier to do from scratch, rather than salvaging scripts from the old package generator