{
  "_id": "6a27c8d424555f66ed540e08",
  "Package": "tensorsem",
  "Type": "Package",
  "Title": "Estimate structural equation models using computation graphs",
  "Version": "2.1.0",
  "Author": "Erik-Jan van Kesteren",
  "Maintainer": "Erik-Jan van Kesteren <e.vankesteren1@uu.nl>",
  "Description": "Use lavaan code to create structural equation models, use\ntorch to estimate them. This package provides the interface\nbetween lavaan and torch.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.3",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Repository": "https://vankesteren.r-universe.dev",
  "Date/Publication": "2025-09-12 14:11:43 UTC",
  "RemoteUrl": "https://github.com/vankesteren/tensorsem",
  "RemoteRef": "HEAD",
  "RemoteSha": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-09 07:49:49 UTC",
    "User": "root"
  },
  "MD5sum": "10a5ca8d7b6c0de8c7d444873686a80b",
  "_user": "vankesteren",
  "_type": "src",
  "_file": "tensorsem_2.1.0.tar.gz",
  "_fileid": "bf06bb39b2643519b5d6e9b053fb5d4fa39ddca106ee5e420c5a2abd8d2460f2",
  "_filesize": 101476,
  "_sha256": "bf06bb39b2643519b5d6e9b053fb5d4fa39ddca106ee5e420c5a2abd8d2460f2",
  "_created": "2026-06-09T07:49:49.000Z",
  "_published": "2026-06-09T08:03:32.001Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80273748038,
      "time": 133,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7501643125"
    },
    {
      "job": 80273748025,
      "time": 116,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501637519"
    },
    {
      "job": 80273748047,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7501693540"
    },
    {
      "job": 80273748057,
      "time": 111,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501857390"
    },
    {
      "job": 80273337663,
      "time": 158,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501596792"
    },
    {
      "job": 80273748065,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501634986"
    },
    {
      "job": 80273748124,
      "time": 93,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7501630022"
    },
    {
      "job": 80273748105,
      "time": 69,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7501622121"
    },
    {
      "job": 80273748133,
      "time": 65,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501620964"
    }
  ],
  "_buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/vankesteren/tensorsem",
  "_commit": {
    "id": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
    "author": "Erik-Jan van Kesteren <erikjanvankesteren@pm.me>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add note callout to readme",
    "time": 1757686303
  },
  "_maintainer": {
    "name": "Erik-Jan van Kesteren",
    "email": "e.vankesteren1@uu.nl",
    "login": "vankesteren",
    "mastodon": "@erikjan@fosstodon.org",
    "orcid": "0000-0003-1548-1663",
    "description": "",
    "uuid": 11596858
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "torch",
      "role": "Depends"
    },
    {
      "package": "lavaan",
      "role": "Depends"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    }
  ],
  "_owner": "vankesteren",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-29",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "computation-graph",
    "lavaan",
    "sem",
    "torch"
  ],
  "_stars": 56,
  "_contributors": [
    {
      "user": "vankesteren",
      "count": 31,
      "uuid": 11596858
    }
  ],
  "_userbio": {
    "uuid": 11596858,
    "type": "user",
    "name": "Erik-Jan van Kesteren"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tensorsem"
  },
  "_devurl": "https://github.com/vankesteren/tensorsem",
  "_searchresults": 9,
  "_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/tensorsem.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "df_to_tensor",
    "lav_mod_to_torch_opts",
    "mvn_negloglik",
    "partable_from_torch",
    "syntax_to_torch_opts",
    "torch_sem",
    "torch_vech"
  ],
  "_help": [
    {
      "page": "df_to_tensor",
      "title": "Prepare data for tensorsem model",
      "topics": [
        "df_to_tensor"
      ]
    },
    {
      "page": "lav_mod_to_torch_opts",
      "title": "Create a torch options list from a lavaan Model class.",
      "topics": [
        "lav_mod_to_torch_opts"
      ]
    },
    {
      "page": "mvn_negloglik",
      "title": "Multivariate normal negative log-likelihood loss function for tensorsem nn module.",
      "topics": [
        "mvn_negloglik"
      ]
    },
    {
      "page": "partable_from_torch",
      "title": "Create a lavaan parameter table from torch free_params output",
      "topics": [
        "partable_from_torch"
      ]
    },
    {
      "page": "sem_fitfun",
      "title": "SEM fitting function",
      "topics": [
        "sem_fitfun"
      ]
    },
    {
      "page": "syntax_to_torch_opts",
      "title": "Create a torch options list from lavaan syntax.",
      "topics": [
        "syntax_to_torch_opts"
      ]
    },
    {
      "page": "torch_jacobian",
      "title": "Compute jacobian of output wrt input tensor",
      "topics": [
        "torch_jacobian"
      ]
    },
    {
      "page": "torch_sem",
      "title": "Structural equation model with a Torch backend",
      "topics": [
        "torch_sem"
      ]
    },
    {
      "page": "torch_vech",
      "title": "Half-vectorization of square matrices",
      "topics": [
        "torch_vech"
      ]
    },
    {
      "page": "vech_dup_idx",
      "title": "Constructs index vector for transforming a vech vector into a vec vector to create an n*n symmetric matrix from the vech vector. tensor$index_select(0, idx)$view(3,3)",
      "topics": [
        "vech_dup_idx"
      ]
    }
  ],
  "_readme": "https://github.com/vankesteren/tensorsem/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "callr",
    "cli",
    "coro",
    "desc",
    "farver",
    "glue",
    "jsonlite",
    "labeling",
    "lavaan",
    "lifecycle",
    "magrittr",
    "MASS",
    "mnormt",
    "numDeriv",
    "otel",
    "pbivnorm",
    "processx",
    "ps",
    "quadprog",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "safetensors",
    "scales",
    "torch",
    "viridisLite",
    "withr"
  ],
  "_score": 3.7481880270062007,
  "_indexed": true,
  "_nocasepkg": "tensorsem",
  "_universes": [
    "vankesteren"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-09T07:51:59.000Z",
      "distro": "noble",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "ab8fe1942cac3964736599d37defab56776781406106dcf3a8384ceab3e21a85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-06-09T07:51:43.000Z",
      "distro": "noble",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "f40377c94b41fd1b8f658b3835d873605a7bf9378d3a93c5444b52316ae7fa40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-06-09T07:54:41.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "a1e578168fd71c1e0d99be255cf1b3aece161606c9213de99c729f635046a103",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-06-09T08:02:57.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "cb09a148d3196821001a5b7948cc59c56c08d671f9c0b31af926196b4290fef8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-06-09T07:51:58.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "85308b1f8d7c2f5b4350c11da634fa2f348f55b4f50b8c750eb592de54af212a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-06-09T07:51:17.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "9857c667c56ccea08b6fe3fc49467dd063ce9e0e3df55fd13586ae2c0955ae29",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-06-09T07:51:00.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "262aff575bb0abaf270b1d18f2f51974760edce2c00907d4f6185f942dbd7521",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-06-09T07:50:55.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "78bfa37ca3ee50b96ee670012a794682b08871d9aa0a20f5ae76ad11f829f34a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/27191708379"
    }
  ]
}