Package: TroublemakeR 0.0.1
TroublemakeR: Generates Spatial Problems in R for 'AMPL'
Provides methods for generating .dat files for use with the 'AMPL' software using spatial data, particularly rasters. It includes support for various spatial data formats and different problem types. By automating the process of generating 'AMPL' datasets, this package can help streamline optimization workflows and make it easier to solve complex optimization problems. The methods implemented in this package are described in detail in a publication by Fourer et al. (<doi:10.1287/mnsc.36.5.519>).
Authors:
TroublemakeR_0.0.1.tar.gz
TroublemakeR_0.0.1.zip(r-4.5)TroublemakeR_0.0.1.zip(r-4.4)TroublemakeR_0.0.1.zip(r-4.3)
TroublemakeR_0.0.1.tgz(r-4.5-any)TroublemakeR_0.0.1.tgz(r-4.4-any)TroublemakeR_0.0.1.tgz(r-4.3-any)
TroublemakeR_0.0.1.tar.gz(r-4.5-noble)TroublemakeR_0.0.1.tar.gz(r-4.4-noble)
TroublemakeR_0.0.1.tgz(r-4.4-emscripten)TroublemakeR_0.0.1.tgz(r-4.3-emscripten)
TroublemakeR.pdf |TroublemakeR.html✨
TroublemakeR/json (API)
# Install 'TroublemakeR' in R: |
install.packages('TroublemakeR', repos = c('https://sustainscapes.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sustainscapes/troublemaker/issues
Pkgdown site:https://sustainscapes.github.io
- Current - A PackedSpatRaster of 4 species with its projected distribution for current conditions
- CurrentLanduse - A PackedSpatRaster of the current landuse
- Species - A list of 4 species with its projected distribution for 4 landuses
- Species_Landuse - A list of 4 species with its projected distribution for 4 landuses
Last updated 3 months agofrom:b1fbbd7f61. Checks:1 OK, 8 NOTE. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 15 2025 |
R-4.5-win | NOTE | Mar 15 2025 |
R-4.5-mac | NOTE | Mar 15 2025 |
R-4.5-linux | NOTE | Mar 15 2025 |
R-4.4-win | NOTE | Mar 15 2025 |
R-4.4-mac | NOTE | Mar 15 2025 |
R-4.4-linux | NOTE | Mar 15 2025 |
R-4.3-win | NOTE | Mar 15 2025 |
R-4.3-mac | NOTE | Mar 15 2025 |
Exports:create_budgetdefine_cellsfind_connectionslanduse_namesLanduseCombinationLocked_in_Cellsspecies_namesspecies_suitabilityspecies_suitability_landusetroublemakerwrite_ampl_lineswrite_cell_param
Dependencies:clidata.tabledplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6Rcpprlangstringistringrterratibbletidyselectutf8vctrswithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Create budget | create_budget |
A PackedSpatRaster of 4 species with its projected distribution for current conditions | Current |
A PackedSpatRaster of the current landuse | CurrentLanduse |
Define Cells | define_cells |
Find connections | find_connections |
Landuse names | landuse_names |
Calculate contiguity bonus based on similarity | LanduseCombination |
Locked in ceks | Locked_in_Cells |
A list of 4 species with its projected distribution for 4 landuses | Species |
A list of 4 species with its projected distribution for 4 landuses | Species_Landuse |
Species names | species_names |
Calculate species suitability | species_suitability |
Calculate species suitability for each landuse | species_suitability_landuse |
Troublemaker | troublemaker |
Writes an AMPL line | write_ampl_lines |
Write cell parameters | write_cell_param |