-
Notifications
You must be signed in to change notification settings - Fork 1
Create regression tests to allow changing your code confidently #17
Comments
@ervanSTRI, please run I need your help with this because right now, I fail to fun your function. And I don't want to try fix it because in doing so I may break something else. |
@ervanSTRI, I see that you added the folder output/ with some plots and a .csv file. The .csv file contains only what seems to be column-headers. Is that what you expect? Also, I see the file "barro colorado island_formated_data.Rdata" in data/. When I load it its name is As you advance in this and other issues, please leave a record here so I can quickly understand what is the state of each issue. |
@ervanSTRI, is the object # data(df)
# correctDBH(df[treeID==240]) If so, notice that one is lowercase and the other one is uppercase. Also, I'm not clear about what |
From @maurolepore on September 18, 2018 15:35
One way to improve your functions with confidence that you are not breaking anything is to run regression tests -- tests that automatically compare the result of a computation against a know result. You can do this with
testthat::expect_known_output()
. It is a fairly advanced topic and I'm happy to help you.Copied from original issue: ErvanCH/AGBflux_pack#16
The text was updated successfully, but these errors were encountered: