pacificclimate / Rudunits2

GNU General Public License v2.0
26 stars 10 forks source link

Dynamically Add and Remove Units, Load Multiple Unit Systems #9

Open billdenney opened 7 years ago

billdenney commented 7 years ago

As discussed in #4, this pull request adds the feature to be able to add new unit conversions. In addition to that, it adds the ability to have multiple unit systems in place so that a new unit conversion can be added to one unit system but not another, for instance.

On top of those feature changes, I've also moved the documentation to a roxygen2-style format within the code. All previous documentation was moved as-is (or just correcting some minor typos).

Most of the programming was done by @SwechhyaBista.

The intent of these changes was to maintain your goal of this being a "thin wrapper" as mentioned in #4; we tried to add minimal code on top of linking the C-level functions from the library to R. If it doesn't match that goal in your opinion, please let us know how we can make it fit with your intent.