{
  "_id": "6ae2863f8d250e7ad09eefb0",
  "Package": "lepidoptera",
  "Title": "Domain-Agnostic Causal Simulation Engine with Mixed Variable\nTypes",
  "Version": "0.1.2",
  "Authors@R": "person(\"Danilo\", \"Sarti\",\nemail = \"danilosarti@rcsi.ie\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"\"))",
  "Description": "A domain-agnostic simulation engine for structural causal\nmodels with heterogeneous variable types. Users define systems\nof continuous, categorical, and ordinal features, declare a\ndirected acyclic graph (DAG) over them, attach typed generative\nmechanisms to each node, and simulate synthetic populations. A\npre-built mechanism library covers all nine\nparent-type/child-type combinations. Vine copula mechanisms\nestimate full joint dependence from observed data via\npair-copula constructions (Bedford and Cooke, 2002)\n<doi:10.1214/aos/1031689014>. Individual-level counterfactual\nqueries are supported through partial propagation, which\nfreezes unaffected random draws and resamples only the\ndownstream subgraph, enabling individual treatment effect (ITE)\nestimation alongside population-level average treatment effects\n(ATE). Any pre-fitted predictive model can serve as a\ngenerative mechanism through three wrapper functions. Systems\nserialise to JSON for cross-language portability with the\ncompanion Python package.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/danilosarti/lepidoptera",
  "BugReports": "https://github.com/danilosarti/lepidoptera/issues",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-28 23:30:12 UTC",
    "User": "root"
  },
  "Author": "Danilo Sarti [aut, cre]",
  "Maintainer": "Danilo Sarti <danilosarti@rcsi.ie>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-28 11:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/lepidoptera",
  "RemoteRef": "HEAD",
  "RemoteSha": "52088561ae98944af19cbe848e6e3786d15861ce",
  "_user": "cran",
  "_type": "src",
  "_file": "lepidoptera_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/bd2fd0d935aa4c02947291defe6e6d4e65b22c6b7c5abbab412876f5a8e5af12",
  "_filesize": 162869,
  "_sha256": "bd2fd0d935aa4c02947291defe6e6d4e65b22c6b7c5abbab412876f5a8e5af12",
  "_expires": "2027-02-05T23:33:17.000Z",
  "_created": "2026-10-28T23:30:12.000Z",
  "_published": "2026-10-28T23:33:19.412Z",
  "_upstream": "https://github.com/cran/lepidoptera",
  "_status": "success",
  "_maintainer": {
    "name": "Danilo Sarti",
    "email": "danilosarti@rcsi.ie"
  },
  "_jobs": [
    {
      "job": 123165415967,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12859978010"
    },
    {
      "job": 123165415989,
      "time": 117,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12859878027"
    },
    {
      "job": 123164333308,
      "time": 168,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12860421308"
    },
    {
      "job": 123165415978,
      "time": 96,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12859614620"
    },
    {
      "job": 123165416000,
      "time": 96,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12859603241"
    },
    {
      "job": 123165415965,
      "time": 92,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12860271616"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40787487479",
  "_commit": {
    "id": "52088561ae98944af19cbe848e6e3786d15861ce",
    "author": "Danilo Sarti <danilosarti@rcsi.ie>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.2\n",
    "time": 1793187602
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "igraph",
      "role": "Suggests"
    },
    {
      "package": "rvinecopulib",
      "version": ">= 0.6.0",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    },
    {
      "package": "yaml",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-44",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.2",
      "date": "2026-10-28"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/lepidoptera"
  },
  "_devurl": "https://github.com/danilosarti/lepidoptera",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/lepidoptera.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "LICENSE"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2026-10-28"
    }
  ],
  "_exports": [
    "add_dependency",
    "add_feature",
    "compare",
    "copula_mechanism",
    "do_distribution",
    "do_fix",
    "export_system",
    "feature_spec",
    "feature_types",
    "finalize_system",
    "import_system",
    "learned_mechanism",
    "list_copula_families",
    "llm_mechanism",
    "mechanism_library_get",
    "mechanism_override",
    "model_mechanism",
    "new_system",
    "plot_graph",
    "propagate",
    "register_mechanism",
    "shift",
    "simulate"
  ],
  "_help": [
    {
      "page": "add_dependency",
      "title": "Add a dependency (edge set + mechanism) to a system",
      "topics": [
        "add_dependency"
      ]
    },
    {
      "page": "add_feature",
      "title": "Add a feature to a system",
      "topics": [
        "add_feature"
      ]
    },
    {
      "page": "compare",
      "title": "Compare baseline and intervened populations",
      "topics": [
        "compare"
      ]
    },
    {
      "page": "copula_mechanism",
      "title": "Copula-based dependency mechanism",
      "topics": [
        "copula_mechanism"
      ]
    },
    {
      "page": "do_distribution",
      "title": "Intervention: replace a feature's generative distribution",
      "topics": [
        "do_distribution"
      ]
    },
    {
      "page": "do_fix",
      "title": "Intervention: fix a feature to a constant value",
      "topics": [
        "do_fix"
      ]
    },
    {
      "page": "export_system",
      "title": "Export a system to JSON or YAML",
      "topics": [
        "export_system"
      ]
    },
    {
      "page": "feature_spec",
      "title": "Declare a feature",
      "topics": [
        "feature_spec"
      ]
    },
    {
      "page": "feature_types",
      "title": "Valid feature types",
      "topics": [
        "feature_types"
      ]
    },
    {
      "page": "finalize_system",
      "title": "Finalize and validate a system",
      "topics": [
        "finalize_system"
      ]
    },
    {
      "page": "import_system",
      "title": "Import a system from JSON or YAML",
      "topics": [
        "import_system"
      ]
    },
    {
      "page": "learned_mechanism",
      "title": "Fit a mechanism directly from observed data",
      "topics": [
        "learned_mechanism"
      ]
    },
    {
      "page": "list_copula_families",
      "title": "List available copula families",
      "topics": [
        "list_copula_families"
      ]
    },
    {
      "page": "llm_mechanism",
      "title": "A mechanism whose value is generated by an LLM call",
      "topics": [
        "llm_mechanism"
      ]
    },
    {
      "page": "mechanism_library_get",
      "title": "Look up a pre-built mechanism factory from the library",
      "topics": [
        "mechanism_library_get"
      ]
    },
    {
      "page": "mechanism_override",
      "title": "Intervention: override a feature's mechanism entirely",
      "topics": [
        "mechanism_override"
      ]
    },
    {
      "page": "model_mechanism",
      "title": "Wrap a pre-fitted model as a generative mechanism",
      "topics": [
        "model_mechanism"
      ]
    },
    {
      "page": "new_system",
      "title": "Create an empty system",
      "topics": [
        "new_system"
      ]
    },
    {
      "page": "plot_graph",
      "title": "Plot a system's dependency graph",
      "topics": [
        "plot_graph"
      ]
    },
    {
      "page": "propagate",
      "title": "Apply interventions and propagate their effects",
      "topics": [
        "propagate"
      ]
    },
    {
      "page": "register_mechanism",
      "title": "Register a custom mechanism",
      "topics": [
        "register_mechanism"
      ]
    },
    {
      "page": "shift",
      "title": "Intervention: shift the value a feature would otherwise take",
      "topics": [
        "shift"
      ]
    },
    {
      "page": "simulate",
      "title": "Simulate a population from a system",
      "topics": [
        "simulate"
      ]
    }
  ],
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "lepidoptera.Rmd",
      "filename": "lepidoptera.html",
      "title": "Getting Started with lepidoptera",
      "author": "Danilo A. Sarti",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "A minimal example",
        "Interventions and counterfactuals",
        "Vine copula mechanism",
        "Further reading"
      ],
      "created": "2026-10-28 11:40:02",
      "modified": "2026-10-28 11:40:02",
      "commits": 1
    }
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "lepidoptera",
  "_universes": [
    "cran",
    "danilosarti"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-28T23:32:38.000Z",
      "distro": "resolute",
      "commit": "52088561ae98944af19cbe848e6e3786d15861ce",
      "fileid": "https://r2.ropensci.org/dd33425594897d735bad439118b1c385451b11eb3f9785cc190a0cc4f499e109",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40787487479"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-28T23:32:14.000Z",
      "distro": "resolute",
      "commit": "52088561ae98944af19cbe848e6e3786d15861ce",
      "fileid": "https://r2.ropensci.org/002ab49dba93ce2dd863d73a1088f932de140b02495e9359b9c6ecd128fc1a1c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40787487479"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-10-28T23:32:07.000Z",
      "commit": "52088561ae98944af19cbe848e6e3786d15861ce",
      "fileid": "https://r2.ropensci.org/810a0214417981860226d0ace8f1625495d6256eca3ed5766b88faf12c4b13a6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40787487479"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-28T23:31:43.000Z",
      "commit": "52088561ae98944af19cbe848e6e3786d15861ce",
      "fileid": "https://r2.ropensci.org/4b4f5b093c203b936341b9962ae845f844592d19d6a5bd6a8e1cc618e6fdcdde",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40787487479"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-28T23:31:40.000Z",
      "commit": "52088561ae98944af19cbe848e6e3786d15861ce",
      "fileid": "https://r2.ropensci.org/fe341e9e863e7ea9287f3394aa64098b71e44e73078bf3cee6662c774895a49b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40787487479"
    }
  ]
}