{
  "_id": "6a0f6da9acfb0bcc41c5ec5d",
  "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-05-21 08:03:35 UTC",
    "User": "root"
  },
  "Author": "Derek Corcoran [aut, cre]",
  "Maintainer": "Derek Corcoran <derek.corcoran.barrios@gmail.com>",
  "MD5sum": "db5efb57855e29eb66bf12b82a216e6f",
  "_user": "sustainscapes",
  "_type": "src",
  "_file": "TroublemakeR_0.0.1.tar.gz",
  "_fileid": "d017efff3e032e3271f9cdb04e2e09b0dc1a3a89e4c1b73a222581419bc36849",
  "_filesize": 132036,
  "_sha256": "d017efff3e032e3271f9cdb04e2e09b0dc1a3a89e4c1b73a222581419bc36849",
  "_created": "2026-05-21T08:03:35.000Z",
  "_published": "2026-05-21T20:40:09.460Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77264256137,
      "time": 189,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7130451262"
    },
    {
      "job": 77264255883,
      "time": 191,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7130451595"
    },
    {
      "job": 77264255588,
      "time": 190,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7130443728"
    },
    {
      "job": 77264255147,
      "time": 203,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7130443624"
    },
    {
      "job": 77264254930,
      "time": 181,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7130390321"
    },
    {
      "job": 77264254439,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7146674703"
    },
    {
      "job": 77264254948,
      "time": 137,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7130435175"
    },
    {
      "job": 77264256138,
      "time": 143,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7130437263"
    },
    {
      "job": 77264255030,
      "time": 143,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7130437171"
    }
  ],
  "_buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 190,
    "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.0",
  "_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-05-21T08:05:47.000Z",
      "distro": "noble",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "147f5967b99cc4bc5e48e5cd5579c77b2ba893a88fd8360175943c577758adc8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-05-21T08:05:51.000Z",
      "distro": "noble",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "624eb82a997c4f880dfde5b68cf0ea4fca862c692dc58c023e4464c14926ac21",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-05-21T08:05:57.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "b89078a50965c38afecda6ebb142492075de8ce491425e68974462a02d710eff",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-05-21T08:05:49.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "47786ab2b6f27dbd320cb751e90120b05e66363c7d009fab54fb1f332dca0461",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-05-21T20:39:49.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "1e59fbb7d7e26fc7b6924daf5d58cfb6bf3cdc6552088a0a3f9c11e31a3cd3c0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-05-21T08:04:50.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "12bc9df81f70f9fb36e79787ccc951f3743bf8dea692f5b405f22ad20207b17f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-05-21T08:04:53.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "bcdd7999b57534b79c9f7c40f2588ecde0661b927e1cb4078e678e8c7e1e587a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-05-21T08:04:52.000Z",
      "commit": "b1fbbd7f6113984ab9aa83ea09b0320c23f1143d",
      "fileid": "ad24029d897acca861d8a2440059d62e811eddcb5ef5de2c2527ec5f292921cd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sustainscapes/actions/runs/26213404029"
    }
  ]
}