{
  "_id": "6ac6cf48de46216d5edcd85f",
  "Package": "rwig",
  "Type": "Package",
  "Title": "Wasserstein Index Generation (WIG) Model",
  "Version": "0.3.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",
  "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, optional)",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.1.0",
  "Config/pak/sysreqs": "nvidia-cuda-dev libicu-dev",
  "Repository": "https://fangzhou-xie.r-universe.dev",
  "Date/Publication": "2026-10-07 21:15:02 UTC",
  "RemoteUrl": "https://github.com/fangzhou-xie/rwig",
  "RemoteRef": "HEAD",
  "RemoteSha": "2ceedebd03544e0e136487358f9d41679d703dff",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-07 22:46:54 UTC",
    "User": "root"
  },
  "Author": "Fangzhou Xie [aut, cre, cph]",
  "Maintainer": "Fangzhou Xie <fangzhou.xie@rutgers.edu>",
  "_user": "fangzhou-xie",
  "_type": "src",
  "_file": "rwig_0.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/9d198dd180322bc096994ff6a11416eb12914888e88b1c12863706c260099eb2",
  "_filesize": 608703,
  "_sha256": "9d198dd180322bc096994ff6a11416eb12914888e88b1c12863706c260099eb2",
  "_expires": "2027-01-15T23:01:26.000Z",
  "_created": "2026-10-07T22:46:54.000Z",
  "_published": "2026-10-07T23:01:28.599Z",
  "_buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113055712422,
      "time": 230,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11517150472"
    },
    {
      "job": 113055712478,
      "time": 223,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11516596798"
    },
    {
      "job": 113055712387,
      "time": 224,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11516482094"
    },
    {
      "job": 113055712339,
      "time": 222,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11516681656"
    },
    {
      "job": 113055712504,
      "time": 108,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11516977460"
    },
    {
      "job": 113055712363,
      "time": 377,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11517410448"
    },
    {
      "job": 113055712437,
      "time": 111,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11516309519"
    },
    {
      "job": 113055712467,
      "time": 315,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11516488208"
    },
    {
      "job": 113053754558,
      "time": 344,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11516890273"
    },
    {
      "job": 113055712405,
      "time": 144,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11515899862"
    },
    {
      "job": 113055712572,
      "time": 412,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11516960962"
    },
    {
      "job": 113055712463,
      "time": 157,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11516059410"
    },
    {
      "job": 113055712563,
      "time": 106,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11516157587"
    },
    {
      "job": 113055712523,
      "time": 345,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11516388144"
    },
    {
      "job": 113055712441,
      "time": 132,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11517130275"
    }
  ],
  "_upstream": "https://github.com/fangzhou-xie/rwig",
  "_commit": {
    "id": "2ceedebd03544e0e136487358f9d41679d703dff",
    "author": "fangzhou-xie <fangzhou.xie@rrutgers.edu>",
    "committer": "fangzhou-xie <fangzhou.xie@rrutgers.edu>",
    "message": "submit cran 0.3.0\n",
    "time": 1791407702
  },
  "_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": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "word2vec",
      "role": "Imports"
    },
    {
      "package": "tokenizers",
      "role": "Imports"
    },
    {
      "package": "stopwords",
      "role": "Imports"
    },
    {
      "package": "RhpcBLASctl",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    }
  ],
  "_owner": "fangzhou-xie",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "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
    },
    {
      "week": "2026-38",
      "n": 16
    },
    {
      "week": "2026-40",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 12
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "fangzhou-xie",
      "count": 28,
      "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": 469,
    "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": 17,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rwig.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/fangzhou-xie/rwig",
  "_realowner": "fangzhou-xie",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-21"
    },
    {
      "version": "0.2.0",
      "date": "2026-09-20"
    }
  ],
  "_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",
    "ISOcodes",
    "Rcpp",
    "RcppProgress",
    "rlang",
    "SnowballC",
    "stopwords",
    "stringi",
    "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": [
        "BLAS threads",
        "See Also",
        "References"
      ],
      "created": "2025-11-26 16:34:26",
      "modified": "2026-09-19 21:02:29",
      "commits": 5
    },
    {
      "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-09-19 20:56:40",
      "commits": 4
    },
    {
      "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.883661435153617,
  "_indexed": true,
  "_nocasepkg": "rwig",
  "_universes": [
    "fangzhou-xie"
  ],
  "_previous": "0.2.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-07T22:51:00.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/279c074825d7ee5338f30831b8fafbbb3df5ce14e50b6a619e9b4873cd925917",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-07T22:50:37.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/5f40c84a75ac698499a39e98bf1b8337f1a60124754531a8498493a44215300c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-07T22:50:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/8a231bafb873d67ea4ac057eadc67a8f72b59839905fa1fca2257bc9b35814dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-07T22:50:41.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/3604a698eb93aa1c258bde8dd3dced05cd9a8a00cfe8bf9c3fe37d8bb45a3451",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-10-07T23:00:47.000Z",
      "arch": "aarch64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/4b01b48cd101aa60d6ffeaf7a6991e196fed1355a75f9807057fcb65d6d381a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-10-07T22:54:01.000Z",
      "arch": "x86_64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/4b29b8ab2dded17123e4b64ed01f7de1b99830a816e20a9ae25c890f693556e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-10-07T22:59:08.000Z",
      "arch": "aarch64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/86a6d99eecfc669e784360a29c29a91fce4999cb16409ce441803b4c8d935056",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-10-07T22:53:26.000Z",
      "arch": "x86_64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/2613d21d05d227708f4c6226483b6c4a3345f07e8f221cf97a1aad7d1c9c7c86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-10-07T22:49:50.000Z",
      "arch": "emscripten",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/3e08c44b61ffd0c6358f6e53e73944793dfe66d39d9617989209738fe13c1178",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-07T22:53:15.000Z",
      "arch": "aarch64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/c8941437dc564e43557a8e0e988e3d21faca7c6bc3373bcfbc01012d48e72d62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-07T22:48:30.000Z",
      "arch": "x86_64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/8634a4c80eb63ea9b2e2895f41a6bcf2ee96c0ff641eacf5d08f97d5ef25b441",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-07T22:48:29.000Z",
      "arch": "x86_64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/b963fece613a41b4e75710f22c9fcd4588608120fa0eb90938776011c29e31a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-07T22:52:01.000Z",
      "arch": "aarch64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/102a97fcc8874303e7ed5b240bde403288c1530d273196c78f635fad6f42c35a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-07T22:48:47.000Z",
      "arch": "x86_64",
      "commit": "2ceedebd03544e0e136487358f9d41679d703dff",
      "fileid": "https://r2.ropensci.org/a0454e58d682bd6ccd1d604e8964c8e4d053f7bd8a57a56750ce80248cdfa536",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fangzhou-xie/actions/runs/37697787397"
    }
  ]
}