{
  "_id": "6a5f366f14e95619b75d59fc",
  "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-07-21 08:57:19 UTC",
    "User": "root"
  },
  "Author": "Fangzhou Xie [aut, cre, cph]",
  "Maintainer": "Fangzhou Xie <fangzhou.xie@rutgers.edu>",
  "_user": "fangzhou-xie",
  "_type": "src",
  "_file": "rwig_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/cf81e9c6df77dc705f8b269030405b3152a5e3bafd4798e0be83fdefccbe8d53",
  "_filesize": 589229,
  "_sha256": "cf81e9c6df77dc705f8b269030405b3152a5e3bafd4798e0be83fdefccbe8d53",
  "_expires": "2026-10-29T09:05:49.000Z",
  "_created": "2026-07-21T08:57:19.000Z",
  "_published": "2026-07-21T09:05:50.971Z",
  "_jobs": [
    {
      "job": 88588597377,
      "time": 413,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8489686004"
    },
    {
      "job": 88588597221,
      "time": 259,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8489613804"
    },
    {
      "job": 88588597227,
      "time": 406,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8489683215"
    },
    {
      "job": 88588597211,
      "time": 285,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8489625572"
    },
    {
      "job": 88588597251,
      "time": 173,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8489560061"
    },
    {
      "job": 88588597226,
      "time": 268,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8489612066"
    },
    {
      "job": 88588597237,
      "time": 171,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8489562579"
    },
    {
      "job": 88588597249,
      "time": 244,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8489600949"
    },
    {
      "job": 88586947443,
      "time": 465,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8489494284"
    },
    {
      "job": 88588597207,
      "time": 218,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8489595259"
    },
    {
      "job": 88588597209,
      "time": 192,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8489583507"
    },
    {
      "job": 88588597212,
      "time": 187,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8489581909"
    },
    {
      "job": 88588597180,
      "time": 196,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8489584846"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 17,
    "description": "PhD Candidate in Economics. Editor at JOSS and Software Impacts. `rethnicity` author/maintainer."
  },
  "_downloads": {
    "count": 299,
    "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.1",
  "_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",
    "LICENSE",
    "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.32+ds-5",
      "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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "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-07-21T09:04:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/244cafb867bcda9415c2d4e5d54a830a976b02bac627e0bb35bacb26a94bb19e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-21T09:01:34.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/ff0e9b433ac3999f5f300ad5fa177bab8372e880a33e31a26e975b47e5936455",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-21T09:04:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/d61c9ef4ec59a13260cf5ac61ae6126e7c06d5ad54f216a50836e8e39d9918b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-21T09:02:00.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/d38ee2dd27bc94f7c1876e3663c2ecc4e3b97a0729f0df87fdff7468b424bf80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-21T09:00:15.000Z",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/f70f1ba891ae691e07b4a9f138a009a490665be3ac8dec968e90d029dc51185f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-21T09:01:19.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/760cbc769623a87361a1b9f476a54fc3212d38afb9b6b150cbb22cb67ed269cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-21T09:00:06.000Z",
      "arch": "aarch64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/8b6dae380ca6ae11481ede36ce8957c37639f2b7c11a34800fe6ae83e8b7e01b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-21T09:00:45.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/7e45091a506e8a3da12a65b3c1fda1f9a283f62a053d119b1030cb35b08693ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-21T09:01:15.000Z",
      "arch": "emscripten",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/0109f21c18808d1922bae19ece957d3d73941890dda5a5dd69d6d6ed21c861e8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-21T08:59:25.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/9ca79270e20c4c26ad20f5b468474e188a94b2363e80117765a6a7f30c970421",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-21T08:59:52.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/feea3305c6afd39987f7a79d76ace9202285f3b45fabe1411179ee9a15dd7d29",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-21T08:59:23.000Z",
      "arch": "x86_64",
      "commit": "c9cdecf4cd1c673011202e97a4baed066f3637b8",
      "fileid": "https://r2.ropensci.org/0f707f4bd26c5a9a922a5d3623380b7eb3b2a32628b5b29a91c902f8114fa8e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/29815844555"
    }
  ]
}