Skip to content

Conversation

@mvillasante
Copy link
Member

@mvillasante mvillasante commented Dec 11, 2025

Description

This pull request adds functionality to plot potential sites using GPS and configuration data, extending the CLI and supporting classes accordingly. Key changes include:

  • R/cli.R: Introduced the plot_potential_site function that reads configuration and GPS data, performs representative assessment using the Track2KBA_Wrapper, computes a potential site, and saves the generated plot as a PNG.
  • R/representative_assess.R: Added the get_potential_site method to the Track2KBA_Wrapper R6 class to support computation of potential sites using population size and representative assessment.
  • tests/testthat/test_cli.R: Added unit tests for the new plotting functionality, including checks for correct figure output and cleanup.
    These changes enable automated assessment and plotting of potential conservation sites directly from the CLI, improving extensibility and testing of site-specific analyses.

@codecov
Copy link

codecov bot commented Dec 11, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@mvillasante mvillasante merged commit 92b50da into develop Dec 19, 2025
3 checks passed
@MemoOlv MemoOlv deleted the feature/plot_potential_site branch December 19, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants