{
  "_id": "6a46f2476527f6f71f9f899b",
  "Package": "tters",
  "Title": "Sequential Target Trial Emulation Data Expansion (Rust + Polars\nBackend)",
  "Version": "0.1.1",
  "Authors@R": "person(\"Michael\", \"Batech\", , \"oldschoolcool@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Fast, verified data-expansion stage for sequential target\ntrial emulation, backed by a Rust and Polars engine via the\n'extendr' crate. Reproduces, bit-for-bit, the expansion output\nof the 'TrialEmulation' R package. The heavy lifting lives in\nthe 'tte-expand' Rust core crate; this package is a thin\nbinding layer.",
  "License": "Apache License (>= 2)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/rextendr/version": "0.5.0",
  "SystemRequirements": "Cargo (Rust's package manager), rustc >= 1.95.0",
  "URL": "https://github.com/oldschoolcool2/rust-tte",
  "BugReports": "https://github.com/oldschoolcool2/rust-tte/issues",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libclang-dev",
  "Repository": "https://oldschoolcool2.r-universe.dev",
  "Date/Publication": "2026-07-02 21:59:54 UTC",
  "RemoteUrl": "https://github.com/oldschoolcool2/rust-tte",
  "RemoteRef": "main",
  "RemoteSha": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
  "RemoteSubdir": "bindings/tters",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-02 22:09:56 UTC",
    "User": "root"
  },
  "Author": "Michael Batech [aut, cre]",
  "Maintainer": "Michael Batech <oldschoolcool@gmail.com>",
  "MD5sum": "d7d7ed46d2ca8e0978bd69a8a93d366b",
  "_user": "oldschoolcool2",
  "_type": "src",
  "_file": "tters_0.1.1.tar.gz",
  "_fileid": "96689e003e09b5aa37bb9e785cbc162504a34645f35f10bfc0b91f0ff95e62d4",
  "_filesize": 302741,
  "_sha256": "96689e003e09b5aa37bb9e785cbc162504a34645f35f10bfc0b91f0ff95e62d4",
  "_created": "2026-07-02T22:09:56.000Z",
  "_published": "2026-07-02T23:20:39.150Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 84891181044,
      "time": 1236,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8053502912"
    },
    {
      "job": 84891181078,
      "time": 1284,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8053514990"
    },
    {
      "job": 84891181056,
      "time": 1229,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8053500883"
    },
    {
      "job": 84891181038,
      "time": 1266,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8053510093"
    },
    {
      "job": 84891181119,
      "time": 1667,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8053603711"
    },
    {
      "job": 84891181087,
      "time": 3117,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8053966967"
    },
    {
      "job": 84891181113,
      "time": 1133,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8053468473"
    },
    {
      "job": 84891181110,
      "time": 2805,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8053890609"
    },
    {
      "job": 84888186798,
      "time": 1256,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8053147809"
    },
    {
      "job": 84891180994,
      "time": 186,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 84891181010,
      "time": 2059,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8053717894"
    },
    {
      "job": 84891181040,
      "time": 2636,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8053862884"
    },
    {
      "job": 84891181013,
      "time": 2520,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8053833677"
    }
  ],
  "_buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/oldschoolcool2/rust-tte",
  "_commit": {
    "id": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
    "author": "Michael Batech <oldschoolcool@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #21 from oldschoolcool2/fix/tters-r-cmd-check-green\n\nfix(tters): green the r-universe badge — testthat generic resolution + R CMD check hygiene (v0.1.1)",
    "time": 1783029594
  },
  "_maintainer": {
    "name": "Michael Batech",
    "email": "oldschoolcool@gmail.com",
    "login": "oldschoolcool2",
    "linkedin": "in/michaelbatech",
    "description": "Epidemiologist & biostatistician building AI for real-world evidence. Causal inference · agentic systems",
    "uuid": 8240016
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "bit64",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "arrow",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "TrialEmulation",
      "version": ">= 0.0.4.11",
      "role": "Suggests"
    }
  ],
  "_owner": "oldschoolcool2",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-27",
      "n": 20
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-07-02"
    },
    {
      "name": "v0.1.1",
      "date": "2026-07-02"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "oldschoolcool2",
      "count": 108,
      "uuid": 8240016
    }
  ],
  "_userbio": {
    "uuid": 8240016,
    "type": "user",
    "name": "Michael Batech",
    "followers": 1,
    "description": "Epidemiologist & biostatistician building AI for real-world evidence. Causal inference · agentic systems"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tters"
  },
  "_devurl": "https://github.com/oldschoolcool2/rust-tte",
  "_searchresults": 0,
  "_cargo": true,
  "_topics": [
    "rust",
    "cargo"
  ],
  "_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/tters.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "expand_df",
    "expand_parquet",
    "expand_trial",
    "expand_trial_df",
    "expand_trial_weighted",
    "expand_trial_weighted_df",
    "expand_trial_weighted_fitted",
    "expand_trial_weighted_fitted_df",
    "expand_trials_tters",
    "expand_weighted_df",
    "expand_weighted_fitted_df",
    "expand_weighted_fitted_parquet",
    "expand_weighted_parquet",
    "fit_trial_weights",
    "fit_trial_weights_df",
    "fit_weights_df",
    "fit_weights_parquet",
    "save_to_tters"
  ],
  "_help": [
    {
      "page": "expand_df",
      "title": "Expand an in-memory cohort 'data.frame' into the sequential target-trial layout and return the result as a 'data.frame' — the frame-in/frame-out analogue of 'expand_parquet()', with no intermediate Parquet.",
      "topics": [
        "expand_df"
      ]
    },
    {
      "page": "expand_parquet",
      "title": "Expand a prepared person-time Parquet dataset into the sequential target-trial layout and write the result to 'output_path'.",
      "topics": [
        "expand_parquet"
      ]
    },
    {
      "page": "expand_trial",
      "title": "Expand a target-trial person-time dataset (ergonomic wrapper)",
      "topics": [
        "expand_trial"
      ]
    },
    {
      "page": "expand_trial_df",
      "title": "Expand a target-trial cohort data.frame in memory (ergonomic wrapper)",
      "topics": [
        "expand_trial_df"
      ]
    },
    {
      "page": "expand_trial_weighted",
      "title": "Expand a dataset and attach pre-computed inverse-probability weights",
      "topics": [
        "expand_trial_weighted"
      ]
    },
    {
      "page": "expand_trial_weighted_df",
      "title": "Expand a cohort data.frame and attach pre-computed weights, in memory (wrapper)",
      "topics": [
        "expand_trial_weighted_df"
      ]
    },
    {
      "page": "expand_trial_weighted_fitted",
      "title": "Fit IPW weights and expand a cohort into a weighted trial frame (ergonomic wrapper)",
      "topics": [
        "expand_trial_weighted_fitted"
      ]
    },
    {
      "page": "expand_trial_weighted_fitted_df",
      "title": "Fit IPW weights and expand a cohort data.frame in one call, in memory (wrapper)",
      "topics": [
        "expand_trial_weighted_fitted_df"
      ]
    },
    {
      "page": "expand_trials_tters",
      "title": "Expand a sequence of target trials with the Rust + Polars engine",
      "topics": [
        "expand_trials_tters"
      ]
    },
    {
      "page": "expand_weighted_df",
      "title": "Expand an in-memory cohort and attach pre-computed inverse-probability weights, returning the weighted frame as a 'data.frame' — the frame-in/frame-out analogue of 'expand_weighted_parquet()'.",
      "topics": [
        "expand_weighted_df"
      ]
    },
    {
      "page": "expand_weighted_fitted_df",
      "title": "Fit the IPW weights for an in-memory cohort, expand, apply, and return the weighted trial frame as a 'data.frame' — a raw cohort 'data.frame' straight to a weighted, expanded 'data.frame' in one call (no pre-computed factor table, no intermediate Parquet). The frame-in/frame-out analogue of 'expand_weighted_fitted_parquet()'. A 64-bit integer 'id' ('bit64::integer64') round-trips exactly.",
      "topics": [
        "expand_weighted_fitted_df"
      ]
    },
    {
      "page": "expand_weighted_fitted_parquet",
      "title": "Fit the IPW weights in Rust, expand the cohort, apply the weights, and write the weighted trial frame — a raw cohort to a weighted, expanded frame in one call (no pre-computed factor table).",
      "topics": [
        "expand_weighted_fitted_parquet"
      ]
    },
    {
      "page": "expand_weighted_parquet",
      "title": "Expand a person-time Parquet dataset and attach pre-computed inverse-probability weights, writing the weighted frame to 'output_path'.",
      "topics": [
        "expand_weighted_parquet"
      ]
    },
    {
      "page": "fit_trial_weights",
      "title": "Fit inverse-probability weights for a target-trial cohort (ergonomic wrapper)",
      "topics": [
        "fit_trial_weights"
      ]
    },
    {
      "page": "fit_trial_weights_df",
      "title": "Fit inverse-probability weights for a cohort data.frame, in memory (wrapper)",
      "topics": [
        "fit_trial_weights_df"
      ]
    },
    {
      "page": "fit_weights_df",
      "title": "Fit the inverse-probability weight factor for an in-memory cohort and return the per-(id, period) factor table (id, period, weight_factor) as a 'data.frame' — the frame-in/frame-out analogue of 'fit_weights_parquet()'.",
      "topics": [
        "fit_weights_df"
      ]
    },
    {
      "page": "fit_weights_parquet",
      "title": "Fit the inverse-probability *weight factor* for a Parquet cohort in Rust and write the per-(id, period) factor table (id, period, weight_factor).",
      "topics": [
        "fit_weights_parquet"
      ]
    },
    {
      "page": "save_to_tters",
      "title": "Create a 'te_datastore_tters' storage backend",
      "concept": [
        "save_to"
      ],
      "topics": [
        "save_to_tters"
      ]
    }
  ],
  "_readme": "https://github.com/oldschoolcool2/rust-tte/raw/main/bindings/tters/README.md",
  "_rundeps": [
    "bit",
    "bit64"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "tters",
  "_universes": [
    "oldschoolcool2"
  ],
  "_previous": "0.1.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-02T22:32:21.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "2f1644c3743fb4e0fcc6d7da52c919be037f43cf44bac7705686e89193ea5c9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-02T22:30:42.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "5a15f23975c0c390d3471be63a19aaedc7cfc062b705e3c5e4352cf9ca839155",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-02T22:32:02.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "ad4196ee8d86a570a288ff6856c3679830b5425c1178dfded9562928b0eb30bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-02T22:30:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "3e7f9b4adcd98ef7a66f2fc68c949eba3b86a404e0e4265d0ece5467c38be84b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-02T22:30:21.000Z",
      "arch": "aarch64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "cc722d4ae5a8f583a3c8daa7d31910837511c82cd5998d66cd64cf27d02a7fad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-02T22:33:20.000Z",
      "arch": "x86_64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "13ace3049a3e10d105d342920024f0ae95cb88397cee804c0ebc72ea1af5c333",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-02T22:29:55.000Z",
      "arch": "aarch64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "dcb2e5a4af8926197cbef38340e4060abc1b281e5519d80ccdb6527fe6b1ea94",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-02T22:31:45.000Z",
      "arch": "x86_64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "6abbd411ea1992881587e6c5d8b725bda2154026ddb86518b2094258a6d8e7c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-02T22:29:37.000Z",
      "arch": "x86_64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "2ec132cab7cafef5565c8cbdf77d549c60529ec1e5c4c912ecc2825db7e46fa7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-02T22:29:45.000Z",
      "arch": "x86_64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "7b58f4130b31e91fe245adbfaded2c12423b684a38fbc56afb67ff9f625d4769",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-02T22:29:22.000Z",
      "arch": "x86_64",
      "commit": "3edab88dd16d61b1fee6b948e8ad513bdb48d7d1",
      "fileid": "9ebfdc05478f0b2f550d23b57e4889115d5c3d63c2587b60a05c09624138dd1c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/oldschoolcool2/actions/runs/28624622845"
    }
  ]
}