Convert remaining standalone tests to testthat framework#138
Merged
Conversation
e48250d to
e3dd58e
Compare
Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/statnet/tergm/sessions/e7c7ae85-14b4-49e7-8957-c4dae713d8e2 Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/statnet/tergm/sessions/e7c7ae85-14b4-49e7-8957-c4dae713d8e2 Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Convert remaining tests to the testthat framework
Convert remaining standalone tests to testthat framework
Apr 9, 2026
Member
|
@copilot reformat the new files according to the Tidyverse Style Guide (https://style.tidyverse.org/). |
- Add spaces around assignment (<-), binary operators, and = in function args - Replace single quotes with double quotes for strings - Replace T/F with TRUE/FALSE - Break long lines (>80 chars) with each argument on its own line - Add space after # in comments - Use 2-space indentation consistently - Wrap long formulas and function calls Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
Contributor
Author
Done in commit 2999bca. All 8 new test files have been reformatted: spaces around |
krivit
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tests/tergm_offset_tests.R→tests/testthat/test-target-offset.Rtests/simulate_networkDynamic.R→tests/testthat/test-simulate-networkDynamic.Rtests/sim_gf_sum.R→tests/testthat/test-sim-gf-sum.Rtests/degree.mean.age.R→tests/testthat/test-degree-mean-age.Rtests/dynamic_MLE_blockdiag.R→tests/testthat/test-dynamic-MLE-blockdiag.Rtests/dynamic_EGMME.R→tests/testthat/test-dynamic-EGMME.Rtests/tergm_parallel.R→tests/testthat/test-tergm-parallel.Rtests/dynamic_MLE_blockdiag.bipartite.R→tests/testthat/test-dynamic-MLE-blockdiag-bipartite.Rtests/(kepttests/testthat.R)=in function args; double quotes; long lines wrapped)