{
  "_id": "6a104b8cacfb0bcc41c9ff5e",
  "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-05-10 07:50:25 UTC",
    "User": "root"
  },
  "MD5sum": "10847212a34539b1fc327b08b8cac9c1",
  "_user": "vankesteren",
  "_type": "src",
  "_file": "tensorsem_2.1.0.tar.gz",
  "_fileid": "d08a4e7f420d8eb4723ae19f0cd3050b4ca6b4d3c29fa72621434d53b2de5774",
  "_filesize": 104225,
  "_sha256": "d08a4e7f420d8eb4723ae19f0cd3050b4ca6b4d3c29fa72621434d53b2de5774",
  "_created": "2026-05-10T07:50:25.000Z",
  "_published": "2026-05-22T12:26:52.439Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77379088445,
      "time": 131,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6902097178"
    },
    {
      "job": 77379088756,
      "time": 152,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6902098652"
    },
    {
      "job": 77379088307,
      "time": 80,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6902091323"
    },
    {
      "job": 77379088451,
      "time": 97,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6902092955"
    },
    {
      "job": 77379088097,
      "time": 176,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6902082687"
    },
    {
      "job": 77379088043,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7160437433"
    },
    {
      "job": 77379088419,
      "time": 89,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6902092148"
    },
    {
      "job": 77379088537,
      "time": 77,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6902090901"
    },
    {
      "job": 77379088746,
      "time": 73,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6902090459"
    }
  ],
  "_buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198",
  "_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",
    "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": 54,
  "_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",
    "pbivnorm",
    "processx",
    "ps",
    "quadprog",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "safetensors",
    "scales",
    "torch",
    "viridisLite",
    "withr"
  ],
  "_score": 3.7323937598229686,
  "_indexed": true,
  "_nocasepkg": "tensorsem",
  "_universes": [
    "vankesteren"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-10T07:52:33.000Z",
      "distro": "noble",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "9a688716c4a049da39c80be5b93ab00ed265b0798ecea2be9fb5d37423dd4d98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-10T07:52:48.000Z",
      "distro": "noble",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "489b06e8556641984316b4b9a1786ea113191b22a90c3569ec5a7c52cd88cb69",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-10T07:51:49.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "058ea8e4367d1e4a435b95cd2f7e3a3d85d8cf6679c2bec9e1c27b8954f0a828",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-10T07:52:01.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "5bd808968e8373cafd5bd1d623dbb50c44d14994a2495956ab447d19d8231687",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-10T07:51:42.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "c8bed809512b4bbb73a9b2a802d9b4a8a6e8359ba36d10b07d0e69b9588120c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-10T07:51:31.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "b70f722a15aab4a4785e3de32eadc3c6dff6e9752dfca0d4412ead68733c3a13",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-10T07:51:27.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "0901ba2440d25aa659bd14e4da3ca7575b3bd68ae6b7119ea7612fe7d5b92124",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-05-22T12:26:37.000Z",
      "commit": "a07ef48754dd5b3ca84fda68bf5f7d26138d22b5",
      "fileid": "ac4036a2f85306dfca27f5c18f057f97d4d7cb009d809a024f9ac0b586ed2a05",
      "status": "success",
      "buildurl": "https://github.com/r-universe/vankesteren/actions/runs/25623269198"
    }
  ]
}