{
  "_id": "6aacf7513d719c1f84073c00",
  "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-09-18 07:41:36 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/5422c7b78361cdfba3697cd254a1c314fd679a56d9b82fd8ed18dc7c0990f959",
  "_filesize": 133024,
  "_sha256": "5422c7b78361cdfba3697cd254a1c314fd679a56d9b82fd8ed18dc7c0990f959",
  "_expires": "2026-12-27T08:33:19.000Z",
  "_created": "2026-09-18T07:41:36.000Z",
  "_published": "2026-09-18T08:33:21.385Z",
  "_jobs": [
    {
      "job": 105522270212,
      "time": 205,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "10537191638"
    },
    {
      "job": 105522270098,
      "time": 200,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "10537221581"
    },
    {
      "job": 105522270127,
      "time": 233,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "10537939783"
    },
    {
      "job": 105522270143,
      "time": 485,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "10538512761"
    },
    {
      "job": 105521491335,
      "time": 181,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10536314827"
    },
    {
      "job": 105522270168,
      "time": 154,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10536916891"
    },
    {
      "job": 105522270223,
      "time": 102,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "10536354977"
    },
    {
      "job": 105522270228,
      "time": 184,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "10536797319"
    },
    {
      "job": 105522270167,
      "time": 124,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "10537505071"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910",
  "_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": 191,
    "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/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TroublemakeR.html"
  ],
  "_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-09-18T07:43:53.000Z",
      "distro": "resolute",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/634382a1e3f335fa6ac5f05705a7eda62e9685fad0c4adf81b6e10cf0a04e678",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-09-18T07:43:51.000Z",
      "distro": "resolute",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/e43f2778b50ab5aaf936ee1dc490bcb9b744b8d5d104bd1d386f5984368e1d22",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-09-18T08:20:55.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/b9a3b1c4fe0e801c0fa3a9354bb9b3df94afa444ffbf72807450e4f1b8f74ee5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-09-18T08:30:56.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/46e344fc745d3315a806e62f0f42335d9c90917d1f4d72a606439a1c178a6132",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-09-18T07:44:24.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/ad34fd7e229b730377807611b8d74ebab7cf8da7732662b400e3f5d6838fc31e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-09-18T07:42:39.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/7605e3825905854706b8d10b4acbfe847bc7bd46f320fb7c85834dc6dc438b7d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-09-18T07:43:44.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/ed46ff2e3ac7212a66ed2218eb6fb8bdd0cdbf274ddcb46f6e1ca56d99311df9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-09-18T07:42:44.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/9f4cf9bd6dd15fd239331e99eef88573f67b5b0c3274ae92eb0233ee82dafec3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/35320397910"
    }
  ]
}