{"action":"created","issue":{"url":"https://api.github.com/repos/forestgeo/AGBfluxes/issues/11","repository_url":"https://api.github.com/repos/forestgeo/AGBfluxes","labels_url":"https://api.github.com/repos/forestgeo/AGBfluxes/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/forestgeo/AGBfluxes/issues/11/comments","events_url":"https://api.github.com/repos/forestgeo/AGBfluxes/issues/11/events","html_url":"https://github.com/forestgeo/AGBfluxes/issues/11","id":362719455,"node_id":"MDU6SXNzdWUzNjI3MTk0NTU=","number":11,"title":"Add tests","user":{"login":"maurolepore","id":5856545,"node_id":"MDQ6VXNlcjU4NTY1NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5856545?v=4","gravatar_id":"","url":"https://api.github.com/users/maurolepore","html_url":"https://github.com/maurolepore","followers_url":"https://api.github.com/users/maurolepore/followers","following_url":"https://api.github.com/users/maurolepore/following{/other_user}","gists_url":"https://api.github.com/users/maurolepore/gists{/gist_id}","starred_url":"https://api.github.com/users/maurolepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurolepore/subscriptions","organizations_url":"https://api.github.com/users/maurolepore/orgs","repos_url":"https://api.github.com/users/maurolepore/repos","events_url":"https://api.github.com/users/maurolepore/events{/privacy}","received_events_url":"https://api.github.com/users/maurolepore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-21T18:02:12Z","updated_at":"2018-09-21T18:02:12Z","closed_at":null,"author_association":"MEMBER","body":"_From @maurolepore on September 18, 2018 15:12_\n\nYou are already testing, but likely in a non-systematic way: you write a function, run it, and see its output  on the console to check check if it's right. You will save you a lot of time if you test systematically, with an automatic unit testing system such as the __[testthat](https://cran.r-project.org/web/packages/testthat/testthat.pdf)__ package. To use __testthat__ run:\r\n\r\n```\r\nusethis::use_testthat()\r\n```\r\n\r\nThen you will see `tests/` in the root directory of your package. Then you add new tests with:\r\n\r\n```\r\nusethis::use_test(\"name-of-the-file-containing-the-functions-you-want-to-test\")\r\n```\r\n\r\nThis video shows the testing workflow: https://youtu.be/Ajtfdc2hnxo\r\n\n\n_Copied from original issue: ervanSTRI/AGBflux_pack#10_"},"comment":{"url":"https://api.github.com/repos/forestgeo/AGBfluxes/issues/comments/423623164","html_url":"https://github.com/forestgeo/AGBfluxes/issues/11#issuecomment-423623164","issue_url":"https://api.github.com/repos/forestgeo/AGBfluxes/issues/11","id":423623164,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzYyMzE2NA==","user":{"login":"maurolepore","id":5856545,"node_id":"MDQ6VXNlcjU4NTY1NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5856545?v=4","gravatar_id":"","url":"https://api.github.com/users/maurolepore","html_url":"https://github.com/maurolepore","followers_url":"https://api.github.com/users/maurolepore/followers","following_url":"https://api.github.com/users/maurolepore/following{/other_user}","gists_url":"https://api.github.com/users/maurolepore/gists{/gist_id}","starred_url":"https://api.github.com/users/maurolepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurolepore/subscriptions","organizations_url":"https://api.github.com/users/maurolepore/orgs","repos_url":"https://api.github.com/users/maurolepore/repos","events_url":"https://api.github.com/users/maurolepore/events{/privacy}","received_events_url":"https://api.github.com/users/maurolepore/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T18:02:12Z","updated_at":"2018-09-21T18:02:12Z","author_association":"MEMBER","body":"This issue was moved to forestgeo/AGBfluxes#10"}}
{"actor":{"display_login":"maurolepore"}}