kevinwolz / hisafer

An R toolbox for the Hi-sAFe biophysical agroforestry model
6 stars 4 forks source link

Create pltHelperFunctions #130

Open mariegosme opened 5 years ago

mariegosme commented 5 years ago

Functions to read, translate and compare crop parameter (plt) files between different versions of STICS (V5 and V8) and hi-sAFe (V1 and V>2.5) : fixes issues #32 and #28 I tried to comment the functions using Roxygen tags so that you can generate the help pages... but it's my first time with Roxygen so I may have made mistakes. Warning: I translated the function names, argument names and warning messages from french to english, but I might have introduced erors in the code when doing that, so please tell me if you get bugs.

kevinwolz commented 5 years ago

@mariegosme, this is my first pull request (so exciting), so it might take me a while to go through this and merge it. Do you need this to happen quickly or do you not have a deadline?

mariegosme commented 5 years ago

no deadline.

actually it's an easy pull request: since it's a whole new file, there are no conflicts betwen existing files. Your work would just be to generate de help file from the Roxygen tags and somehow merge it with the package help

Guillaume-Blanchet commented 4 years ago

A comment so that @kevinwolz knows that Marie's script is not ready to be pulled yet : we discovered bugs for some functions that are not fixed yet. @mariegosme is working on it !

kevinwolz commented 4 years ago

Let me know when this is ready. I'm excited to try my first pull!

kevinwolz commented 4 years ago

One thing I'll request is that you try to make the formatting and documentation of these new functions as similar as possible to that of the rest of hisafer. I haven't produced a "style guide" for the package, but below are some of the basic criteria off the top of my head. You can also look at other hisafer R files for examples.