{
  "_id": "6afc3feb117874b00e23b826",
  "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-11-17 11:09:03 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/6bfc8e8b8bb80a221bde1973e840fc5ff7404160873416f7bb971d5c64a23ee4",
  "_filesize": 131999,
  "_sha256": "6bfc8e8b8bb80a221bde1973e840fc5ff7404160873416f7bb971d5c64a23ee4",
  "_expires": "2027-02-25T11:52:09.000Z",
  "_created": "2026-11-17T11:09:03.000Z",
  "_published": "2026-11-20T03:20:53.857Z",
  "_upstream": "https://github.com/sustainscapes/troublemaker",
  "_status": "success",
  "_maintainer": {
    "name": "Derek Corcoran",
    "email": "derek.corcoran.barrios@gmail.com",
    "login": "derek-corcoran-barrios",
    "description": "",
    "uuid": 10416736
  },
  "_jobs": [
    {
      "job": 133998355193,
      "time": 160,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "14322677590"
    },
    {
      "job": 133998355137,
      "time": 178,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "14322957141"
    },
    {
      "job": 133998355175,
      "time": 187,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "14322313302"
    },
    {
      "job": 133998355227,
      "time": 272,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "14324294533"
    },
    {
      "job": 133996862331,
      "time": 166,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14322492501"
    },
    {
      "job": 133998355208,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14323850073"
    },
    {
      "job": 133998355218,
      "time": 156,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "14322922383"
    },
    {
      "job": 133998355238,
      "time": 99,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "14323760233"
    },
    {
      "job": 133998355327,
      "time": 146,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "14322174161"
    }
  ],
  "_buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 341,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TroublemakeR"
  },
  "_devurl": "https://github.com/sustainscapes/troublemaker",
  "_pkgdown": "https://sustainscapes.github.io/TroublemakeR/",
  "_rbuild": "4.6.2",
  "_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-11-17T11:10:58.000Z",
      "distro": "resolute",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/557c331a9aeda9f3e31bfebfec6a00b791bf9ad9de8f277f6b271343788c391a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-11-17T11:11:11.000Z",
      "distro": "resolute",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/0a6e6b8edf6c766a9d9011a172cfa4a4184414908fe44e0f936b3a559aa066d2",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-11-17T11:15:49.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/00520a2d185185f3ce7270b7f9478ab4f7ee46656a9d80ac3bfc7772158984a5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-11-17T11:49:33.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/8afb577ba30562c264e667b021cab1ba5a8a420a0360742e8f70251a4573260f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-11-17T11:11:05.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/523dff9a6e47e753dd8731cf5d713b9e30030daeb3a8c9c70a5c1850665d5743",
      "status": "success",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-11-17T11:10:19.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/9d0954baed563f53ac571e5703d575c41e35377dc0d92c9d892fd49b59f5677c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-11-17T11:10:07.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/d60e86903271aa42180b710363151cd2d63e622cebbd79a8da923839439184e8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-11-17T11:10:14.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "https://r2.ropensci.org/00a14119d01fddf1dfeeb4725c835da6b23054b6d7339e23d6f2116d4aa0e6ba",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/44070938915"
    }
  ]
}