{
  "_id": "6a10b080acfb0bcc41cc2a5f",
  "Package": "rwig",
  "Type": "Package",
  "Title": "Wasserstein Index Generation (WIG) Model",
  "Version": "0.1.0",
  "Authors@R": "person(\"Fangzhou\", \"Xie\", , \"fangzhou.xie@rutgers.edu\", role = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "Efficient implementation of several Optimal Transport\nalgorithms in Fangzhou Xie (2025)\n<doi:10.48550/arXiv.2504.08722> and the Wasserstein Index\nGeneration (WIG) model in Fangzhou Xie (2020)\n<doi:10.1016/j.econlet.2019.108874>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "URL": "https://github.com/fangzhou-xie/rwig,\nhttps://fangzhou-xie.github.io/rwig/",
  "BugReports": "https://github.com/fangzhou-xie/rwig/issues",
  "Roxygen": "list(markdown = TRUE)",
  "SystemRequirements": "autoconf, CUDA (> 13.0, only for Linux)",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "nvidia-cuda-dev libicu-dev",
  "Repository": "https://fangzhou-xie.r-universe.dev",
  "Date/Publication": "2026-04-21 19:42:26 UTC",
  "RemoteUrl": "https://github.com/fangzhou-xie/rwig",
  "RemoteRef": "HEAD",
  "RemoteSha": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-22 19:01:29 UTC",
    "User": "root"
  },
  "Author": "Fangzhou Xie [aut, cre, cph]",
  "Maintainer": "Fangzhou Xie <fangzhou.xie@rutgers.edu>",
  "MD5sum": "8779bd3520bd19688ccc326b70e9ad54",
  "_user": "fangzhou-xie",
  "_type": "src",
  "_file": "rwig_0.1.0.tar.gz",
  "_fileid": "0e2b20d0e6af19c792009e2a9a62e997671ebf70957f128bd1143355db330bdb",
  "_filesize": 589284,
  "_sha256": "0e2b20d0e6af19c792009e2a9a62e997671ebf70957f128bd1143355db330bdb",
  "_created": "2026-05-22T19:01:29.000Z",
  "_published": "2026-05-22T19:37:36.569Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77444914802,
      "time": 391,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7168377009"
    },
    {
      "job": 77444914827,
      "time": 364,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7168399769"
    },
    {
      "job": 77444914847,
      "time": 394,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168377836"
    },
    {
      "job": 77444914832,
      "time": 323,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168388861"
    },
    {
      "job": 77444914803,
      "time": 135,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7168850149"
    },
    {
      "job": 77444914953,
      "time": 233,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7168515862"
    },
    {
      "job": 77444915004,
      "time": 113,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168677161"
    },
    {
      "job": 77444914944,
      "time": 315,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168560033"
    },
    {
      "job": 77443122972,
      "time": 541,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168260459"
    },
    {
      "job": 77444914758,
      "time": 191,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168348862"
    },
    {
      "job": 77444914764,
      "time": 214,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7168356374"
    },
    {
      "job": 77444914825,
      "time": 172,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7168339783"
    },
    {
      "job": 77444914786,
      "time": 190,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168345139"
    }
  ],
  "_buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/fangzhou-xie/rwig",
  "_commit": {
    "id": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
    "author": "fangzhou-xie <fangzhou.xie@rrutgers.edu>",
    "committer": "fangzhou-xie <fangzhou.xie@rrutgers.edu>",
    "message": "update readme\n",
    "time": 1776800546
  },
  "_maintainer": {
    "name": "Fangzhou Xie",
    "email": "fangzhou.xie@rutgers.edu",
    "login": "fangzhou-xie",
    "description": "PhD Candidate in Economics. Editor at JOSS and Software Impacts. `rethnicity` author/maintainer.",
    "uuid": 45321577
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.8",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "version": ">= 0.12.8.4.0",
      "role": "LinkingTo"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "RhpcBLASctl",
      "role": "Imports"
    },
    {
      "package": "word2vec",
      "role": "Imports"
    },
    {
      "package": "tokenizers",
      "role": "Imports"
    },
    {
      "package": "stopwords",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    }
  ],
  "_owner": "fangzhou-xie",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-30",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 9
    },
    {
      "week": "2025-49",
      "n": 5
    },
    {
      "week": "2026-08",
      "n": 9
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "fangzhou-xie",
      "count": 27,
      "uuid": 45321577
    }
  ],
  "_userbio": {
    "uuid": 45321577,
    "type": "user",
    "name": "Fangzhou Xie",
    "description": "PhD Candidate in Economics. Editor at JOSS and Software Impacts. `rethnicity` author/maintainer."
  },
  "_downloads": {
    "count": 559,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rwig"
  },
  "_devurl": "https://github.com/fangzhou-xie/rwig",
  "_pkgdown": "https://fangzhou-xie.github.io/rwig/",
  "_searchresults": 12,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rwig.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/fangzhou-xie/rwig",
  "_realowner": "fangzhou-xie",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-21"
    }
  ],
  "_exports": [
    "barycenter",
    "check_cuda",
    "sinkhorn",
    "tsvd",
    "wdl",
    "wdl_specs",
    "wig",
    "wig_specs"
  ],
  "_datasets": [
    {
      "name": "headlines",
      "title": "NYT headlines by economic policy uncertainty",
      "object": "headlines",
      "class": [
        "data.frame"
      ],
      "fields": [
        "headline",
        "ref_date"
      ],
      "rows": 18507,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "barycenter",
      "title": "Barycenter algorithm",
      "concept": [
        "Barycenter algorithms"
      ],
      "topics": [
        "barycenter"
      ]
    },
    {
      "page": "check_cuda",
      "title": "Check if CUDA is available",
      "topics": [
        "check_cuda"
      ]
    },
    {
      "page": "headlines",
      "title": "NYT headlines by economic policy uncertainty",
      "topics": [
        "headlines"
      ]
    },
    {
      "page": "sinkhorn",
      "title": "Sinkhorn algorithm",
      "concept": [
        "Sinkhorn algorithms"
      ],
      "topics": [
        "sinkhorn"
      ]
    },
    {
      "page": "tsvd",
      "title": "Truncated SVD",
      "topics": [
        "tsvd"
      ]
    },
    {
      "page": "wdl",
      "title": "Wasserstein Dictionary Learning model",
      "topics": [
        "print.wdl",
        "summary.wdl",
        "wdl",
        "wdl.character"
      ]
    },
    {
      "page": "wdl_specs",
      "title": "Model Specs for WDL and WIG models",
      "topics": [
        "wdl_specs",
        "wig_specs"
      ]
    },
    {
      "page": "wig",
      "title": "Wasserstein Index Generation model",
      "topics": [
        "print.wig",
        "summary.wig",
        "wig",
        "wig.data.frame"
      ]
    }
  ],
  "_readme": "https://github.com/fangzhou-xie/rwig/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "generics",
    "ISOcodes",
    "lubridate",
    "Rcpp",
    "RcppArmadillo",
    "RcppProgress",
    "RhpcBLASctl",
    "rlang",
    "SnowballC",
    "stopwords",
    "stringi",
    "timechange",
    "tokenizers",
    "word2vec"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "barycenter.Rmd",
      "filename": "barycenter.html",
      "title": "Barycenter Algorithms",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Difference from sinkhorn()",
        "See Also",
        "Reference"
      ],
      "created": "2025-11-28 21:42:23",
      "modified": "2025-12-02 22:41:18",
      "commits": 3
    },
    {
      "source": "gradient.Rmd",
      "filename": "gradient.html",
      "title": "Computation of the Gradients",
      "engine": "knitr::rmarkdown",
      "headings": [
        "See Also",
        "References"
      ],
      "created": "2025-11-28 21:42:23",
      "modified": "2025-12-02 22:41:18",
      "commits": 3
    },
    {
      "source": "cuda.Rmd",
      "filename": "cuda.html",
      "title": "CUDA Acceleration",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-02-17 22:14:08",
      "modified": "2026-02-17 22:14:08",
      "commits": 1
    },
    {
      "source": "threading.Rmd",
      "filename": "threading.html",
      "title": "Multi-threading Support",
      "engine": "knitr::rmarkdown",
      "headings": [
        "See Also",
        "References"
      ],
      "created": "2025-11-26 16:34:26",
      "modified": "2025-12-02 22:41:18",
      "commits": 4
    },
    {
      "source": "sinkhorn.Rmd",
      "filename": "sinkhorn.html",
      "title": "Sinkhorn Algorithms",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Get Started with Sinkhorn Algorithm",
        "Vanilla, Log, and Auto Sinkhorn Algorithms",
        "Gradient of Loss w.r.t. a",
        "Other Control Parameters",
        "Reference"
      ],
      "created": "2025-11-26 16:34:26",
      "modified": "2025-12-02 22:41:18",
      "commits": 4
    },
    {
      "source": "tsvd.Rmd",
      "filename": "tsvd.html",
      "title": "Truncated SVD",
      "engine": "knitr::rmarkdown",
      "headings": [
        "References"
      ],
      "created": "2025-11-28 22:04:35",
      "modified": "2026-02-17 22:14:08",
      "commits": 4
    },
    {
      "source": "specs.Rmd",
      "filename": "specs.html",
      "title": "WDL and WIG Model Specs",
      "engine": "knitr::rmarkdown",
      "headings": [
        "wig_control",
        "wdl_control",
        "tokenizer_control",
        "word2vec_control",
        "barycenter_control",
        "optimizer_control",
        "See Also",
        "References"
      ],
      "created": "2025-12-02 21:52:16",
      "modified": "2026-02-17 18:27:36",
      "commits": 3
    },
    {
      "source": "wdl-model.Rmd",
      "filename": "wdl-model.html",
      "title": "WDL Model",
      "engine": "knitr::rmarkdown",
      "headings": [
        "See Also",
        "References"
      ],
      "created": "2025-11-28 21:42:23",
      "modified": "2026-03-06 17:10:52",
      "commits": 4
    },
    {
      "source": "wig-model.Rmd",
      "filename": "wig-model.html",
      "title": "WIG Model",
      "engine": "knitr::rmarkdown",
      "headings": [
        "See Also",
        "References"
      ],
      "created": "2025-11-28 21:42:23",
      "modified": "2026-03-06 17:10:52",
      "commits": 4
    }
  ],
  "_score": 5.635483746814912,
  "_indexed": true,
  "_nocasepkg": "rwig",
  "_universes": [
    "fangzhou-xie"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T19:07:59.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "f59397a53eba4c765211db55df485fffadcc546d6e4e3ece175adcecaaf5e1bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T19:08:58.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "01e7ee98db8ab4f0ab972901b4423e0b53a561dc914d71cb6efdb8a73076fb63",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T19:08:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "cb70fbded7d38ad64bf51b442057136943742965b84df4adc46cb0d3a4a2b03f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T19:08:53.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "b8831acce16e139923daf5d434c93aba3025cb2ab5481a948c7c2cc3ed6859ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T19:36:19.000Z",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "bdeffc291473b11271a072bf0c32dc033e098b0a366c19042dc348f3db2ae9dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T19:15:34.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "3b93cb84a17e68dd5999c5086d4f6f40b776d8a351ddca0aabd95fc61742d3d9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T19:26:08.000Z",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "3e57ed3379b5480345c07e6d4862b4607ad13453445a3d618d4f8e4dfe0da9d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T19:17:23.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "c87e221dfc3f8d6d0c8127429cda9d183a2ceccd3e94f1f3da2614f454dd646a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-22T19:06:54.000Z",
      "arch": "emscripten",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "f72c58d8aab1a981184f65eef4c5a1ad356f3487d993f6f48de22ac59703520c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T19:05:54.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "771d508f8c7b24e91c6d416cb5d3b59ffc070c317eda49a80bfff201df4296ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T19:05:23.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "8568bd4c0d5bfb14f149e188e39571d9febaf259f96831bc1d22cdeca8dcc463",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T19:05:21.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "6f4356bb765fa2469dacf073c55074630e4ad9ebfebbd6668562595b027cba9c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/26279391082"
    }
  ]
}