{
  "_id": "6a5dd2c29baadeef8ab54fe3",
  "Package": "TroublemakeR",
  "Title": "Generates Spatial Problems in R for 'AMPL'",
  "Version": "0.0.1",
  "Authors@R": "person(given = \"Derek\", family =\"Corcoran\",\nemail = \"derek.corcoran.barrios@gmail.com\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Provides methods for generating .dat files for use with\nthe 'AMPL' software using spatial data, particularly rasters.\nIt includes support for various spatial data formats and\ndifferent problem types. By automating the process of\ngenerating 'AMPL' datasets, this package can help streamline\noptimization workflows and make it easier to solve complex\noptimization problems. The methods implemented in this package\nare described in detail in a publication by Fourer et al.\n(<doi:10.1287/mnsc.36.5.519>).",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "URL": "https://github.com/Sustainscapes/TroublemakeR,\nhttps://sustainscapes.github.io/TroublemakeR/",
  "BugReports": "https://github.com/Sustainscapes/TroublemakeR/issues",
  "Config/pak/sysreqs": "libgdal-dev gdal-bin libgeos-dev libicu-dev\nlibproj-dev libsqlite3-dev",
  "Repository": "https://sustainscapes.r-universe.dev",
  "Date/Publication": "2025-01-14 12:38:01 UTC",
  "RemoteUrl": "https://github.com/sustainscapes/troublemaker",
  "RemoteRef": "HEAD",
  "RemoteSha": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-20 07:43:55 UTC",
    "User": "root"
  },
  "Author": "Derek Corcoran [aut, cre]",
  "Maintainer": "Derek Corcoran <derek.corcoran.barrios@gmail.com>",
  "_user": "sustainscapes",
  "_type": "src",
  "_file": "TroublemakeR_0.0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/69f53a39cc31c9a66f7aa9dbb000f6cfb9862cb480a880c14f9fd325c2861736",
  "_filesize": 131920,
  "_sha256": "69f53a39cc31c9a66f7aa9dbb000f6cfb9862cb480a880c14f9fd325c2861736",
  "_expires": "2026-10-28T07:48:16.000Z",
  "_created": "2026-07-20T07:43:55.000Z",
  "_published": "2026-07-20T07:48:18.487Z",
  "_jobs": [
    {
      "job": 88297716122,
      "time": 214,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8454147981"
    },
    {
      "job": 88297716110,
      "time": 209,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8454146132"
    },
    {
      "job": 88297716154,
      "time": 180,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8454125579"
    },
    {
      "job": 88297716149,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8454125407"
    },
    {
      "job": 88297191208,
      "time": 187,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8454074180"
    },
    {
      "job": 88297716147,
      "time": 138,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8454120589"
    },
    {
      "job": 88297716131,
      "time": 165,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8454131688"
    },
    {
      "job": 88297716214,
      "time": 157,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8454129418"
    },
    {
      "job": 88297716178,
      "time": 166,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8454131618"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193",
  "_status": "success",
  "_upstream": "https://github.com/sustainscapes/troublemaker",
  "_commit": {
    "id": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
    "author": "derek-corcoran-barrios <derek-corcoran-barrios@gmail.com>",
    "committer": "derek-corcoran-barrios <derek-corcoran-barrios@gmail.com>",
    "message": "Updated the find connections function and added the locked_in function for cells that are always part of the solution\n",
    "time": 1736858281
  },
  "_maintainer": {
    "name": "Derek Corcoran",
    "email": "derek.corcoran.barrios@gmail.com",
    "login": "derek-corcoran-barrios",
    "description": "",
    "uuid": 10416736
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "terra",
      "role": "Imports"
    }
  ],
  "_owner": "sustainscapes",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "optimization",
    "rpackge"
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 90247507,
    "type": "organization",
    "name": "SustainScapes",
    "followers": 4
  },
  "_downloads": {
    "count": 189,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TroublemakeR"
  },
  "_devurl": "https://github.com/sustainscapes/troublemaker",
  "_pkgdown": "https://sustainscapes.github.io/TroublemakeR/",
  "_searchresults": 4,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TroublemakeR.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/sustainscapes/troublemaker",
  "_realowner": "sustainscapes",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2023-04-03"
    }
  ],
  "_exports": [
    "create_budget",
    "define_cells",
    "find_connections",
    "landuse_names",
    "LanduseCombination",
    "Locked_in_Cells",
    "species_names",
    "species_suitability",
    "species_suitability_landuse",
    "troublemaker",
    "write_ampl_lines",
    "write_cell_param"
  ],
  "_datasets": [
    {
      "name": "Current",
      "title": "A PackedSpatRaster of 4 species with its projected distribution for current conditions",
      "object": "Current",
      "class": [
        "PackedSpatRaster"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "CurrentLanduse",
      "title": "A PackedSpatRaster of the current landuse",
      "object": "CurrentLanduse",
      "class": [
        "PackedSpatRaster"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "Species",
      "title": "A list of 4 species with its projected distribution for 4 landuses",
      "object": "Species",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "Species_Landuse",
      "title": "A list of 4 species with its projected distribution for 4 landuses",
      "object": "Species_Landuse",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "create_budget",
      "title": "Create budget",
      "topics": [
        "create_budget"
      ]
    },
    {
      "page": "Current",
      "title": "A PackedSpatRaster of 4 species with its projected distribution for current conditions",
      "topics": [
        "Current"
      ]
    },
    {
      "page": "CurrentLanduse",
      "title": "A PackedSpatRaster of the current landuse",
      "topics": [
        "CurrentLanduse"
      ]
    },
    {
      "page": "define_cells",
      "title": "Define Cells",
      "topics": [
        "define_cells"
      ]
    },
    {
      "page": "find_connections",
      "title": "Find connections",
      "topics": [
        "find_connections"
      ]
    },
    {
      "page": "landuse_names",
      "title": "Landuse names",
      "topics": [
        "landuse_names"
      ]
    },
    {
      "page": "LanduseCombination",
      "title": "Calculate contiguity bonus based on similarity",
      "topics": [
        "LanduseCombination"
      ]
    },
    {
      "page": "Locked_in_Cells",
      "title": "Locked in ceks",
      "topics": [
        "Locked_in_Cells"
      ]
    },
    {
      "page": "Species",
      "title": "A list of 4 species with its projected distribution for 4 landuses",
      "topics": [
        "Species"
      ]
    },
    {
      "page": "Species_Landuse",
      "title": "A list of 4 species with its projected distribution for 4 landuses",
      "topics": [
        "Species_Landuse"
      ]
    },
    {
      "page": "species_names",
      "title": "Species names",
      "topics": [
        "species_names"
      ]
    },
    {
      "page": "species_suitability",
      "title": "Calculate species suitability",
      "topics": [
        "species_suitability"
      ]
    },
    {
      "page": "species_suitability_landuse",
      "title": "Calculate species suitability for each landuse",
      "topics": [
        "species_suitability_landuse"
      ]
    },
    {
      "page": "troublemaker",
      "title": "Troublemaker",
      "topics": [
        "troublemaker"
      ]
    },
    {
      "page": "write_ampl_lines",
      "title": "Writes an AMPL line",
      "topics": [
        "write_ampl_lines"
      ]
    },
    {
      "page": "write_cell_param",
      "title": "Write cell parameters",
      "topics": [
        "write_cell_param"
      ]
    }
  ],
  "_readme": "https://github.com/sustainscapes/troublemaker/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "data.table",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "Rcpp",
    "rlang",
    "stringi",
    "stringr",
    "terra",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "troublemaker",
  "_universes": [
    "sustainscapes",
    "derek-corcoran-barrios"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-07-20T07:46:19.000Z",
      "distro": "resolute",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/f6eaabbd635884383f1b150a2ad1cd5658290eac5b638135f0fae18d80ded8ef",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-07-20T07:46:19.000Z",
      "distro": "resolute",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/76379f7117f522c2448cf26ab5d8d13077ac36f8733f5c95048a66330e3331b7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-07-20T07:46:00.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/82ca65d1ee539d07f92310df9028238c93a27fe3c70509564995dca97f672ab9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-07-20T07:45:55.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/044a23ef5ba345f9c3c9084190143f6629c50c0640428c468222dc2fc9a2181e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-07-20T07:46:30.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/bcd2d1645b172e393971a8b694b88ff6e8cb00605679f6d3f0e16f450c86d9c5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-07-20T07:45:18.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/7deb98fa5ea79d90f95d647ea1ab357c8d9dce7523efa4aba9c393cfb2025ce6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-07-20T07:45:45.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/20fa4a0e4eb77d900f95324a72497530a3c4095dcdbd0a47725b590daebb3e5e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-07-20T07:45:28.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/9f4b6d23280f815b0bf8c270297dcc030a997bb4e67c3fb6c24427444ee8792e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/29725374193"
    }
  ]
}