{
  "_id": "6a16b8d3acfb0bcc41d8689c",
  "Package": "BERTopic",
  "Type": "Package",
  "Title": "Topic Modeling with 'BERTopic'",
  "Version": "0.1.0",
  "Authors@R": "person(\"Biying\", \"Zhou\", email = \"biying.zhou@psu.edu\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Interface to the Python package 'BERTopic'\n<[https://maartengr.github.io/BERTopic/index.html]https://maartengr.github.io/BERTopic/index.html>\nfor transformer-based topic modeling. Provides R wrappers to\nfit BERTopic models, transform new documents, update and reduce\ntopics, extract topic- and document-level information, and\ngenerate interactive visualizations. 'Python' backends and\ndependencies are managed via the 'reticulate' package.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/Feng-Ji-Lab/BERTopic",
  "BugReports": "https://github.com/Feng-Ji-Lab/BERTopic/issues",
  "Language": "en-US",
  "Config/pak/sysreqs": "libpng-dev python3",
  "Repository": "https://feng-ji-lab.r-universe.dev",
  "Date/Publication": "2026-01-20 18:45:01 UTC",
  "RemoteUrl": "https://github.com/feng-ji-lab/bertopic",
  "RemoteRef": "HEAD",
  "RemoteSha": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 09:23:41 UTC",
    "User": "root"
  },
  "Author": "Biying Zhou [aut, cre]",
  "Maintainer": "Biying Zhou <biying.zhou@psu.edu>",
  "MD5sum": "d785b8536be13d8c71bdc90610094f8c",
  "_user": "feng-ji-lab",
  "_type": "src",
  "_file": "BERTopic_0.1.0.tar.gz",
  "_fileid": "d67216bdd74352af0c28487e2f4d7d63bd8e2cbde3eb045d8f6f923000ffa623",
  "_filesize": 373137,
  "_sha256": "d67216bdd74352af0c28487e2f4d7d63bd8e2cbde3eb045d8f6f923000ffa623",
  "_created": "2026-05-27T09:23:41.000Z",
  "_published": "2026-05-27T09:26:43.718Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78047008356,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7236792273"
    },
    {
      "job": 78047008345,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236782883"
    },
    {
      "job": 78047008399,
      "time": 130,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7236781905"
    },
    {
      "job": 78047008416,
      "time": 154,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236785566"
    },
    {
      "job": 78046572378,
      "time": 155,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236741314"
    },
    {
      "job": 78047008458,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236780627"
    },
    {
      "job": 78047008409,
      "time": 86,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7236773068"
    },
    {
      "job": 78047008389,
      "time": 91,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7236775618"
    },
    {
      "job": 78047008375,
      "time": 74,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236769988"
    }
  ],
  "_buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/feng-ji-lab/bertopic",
  "_commit": {
    "id": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
    "author": "BiyingZhou <zby.zhou@mail.utoronto.ca>",
    "committer": "BiyingZhou <zby.zhou@mail.utoronto.ca>",
    "message": "Update as per CRAN policy\n",
    "time": 1768934701
  },
  "_maintainer": {
    "name": "Biying Zhou",
    "email": "biying.zhou@psu.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "reticulate",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.0",
      "role": "Suggests"
    }
  ],
  "_owner": "feng-ji-lab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-36",
      "n": 5
    },
    {
      "week": "2025-37",
      "n": 3
    },
    {
      "week": "2025-39",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "biyingzhou",
      "count": 13,
      "uuid": 166061272
    }
  ],
  "_userbio": {
    "uuid": 166061424,
    "type": "organization",
    "name": "Feng Ji Lab",
    "description": "Feng Ji Lab at UofT."
  },
  "_downloads": {
    "count": 167,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BERTopic"
  },
  "_devurl": "https://github.com/feng-ji-lab/bertopic",
  "_searchresults": 18,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BERTopic.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/feng-ji-lab/bertopic",
  "_realowner": "feng-ji-lab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-01-26"
    }
  ],
  "_exports": [
    "bertopic_as_document_topic_matrix",
    "bertopic_available",
    "bertopic_find_topics",
    "bertopic_fit",
    "bertopic_get_document_info",
    "bertopic_get_representative_docs",
    "bertopic_has_embedding_model",
    "bertopic_load",
    "bertopic_reduce_topics",
    "bertopic_save",
    "bertopic_self_check",
    "bertopic_session_info",
    "bertopic_set_embedding_model",
    "bertopic_set_topic_labels",
    "bertopic_topic_terms",
    "bertopic_topics",
    "bertopic_topics_over_time",
    "bertopic_transform",
    "bertopic_update_topics",
    "bertopic_visualize_barchart",
    "bertopic_visualize_distribution",
    "bertopic_visualize_documents",
    "bertopic_visualize_heatmap",
    "bertopic_visualize_hierarchical_documents",
    "bertopic_visualize_hierarchy",
    "bertopic_visualize_term_rank",
    "bertopic_visualize_topics",
    "bertopic_visualize_topics_over_time",
    "bertopic_visualize_topics_per_class",
    "fortify.bertopic_r",
    "install_py_deps",
    "install_py_deps_conda",
    "install_py_deps_venv",
    "set_bertopic_seed",
    "use_bertopic",
    "use_bertopic_condaenv",
    "use_bertopic_virtualenv"
  ],
  "_datasets": [
    {
      "name": "sms_spam",
      "title": "SMS Spam Collection (UCI) - subset for examples",
      "object": "sms_spam",
      "class": [
        "data.frame"
      ],
      "fields": [
        "label",
        "text"
      ],
      "rows": 2247,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "as.data.frame.bertopic_r",
      "title": "Coerce to data.frame",
      "topics": [
        "as.data.frame.bertopic_r"
      ]
    },
    {
      "page": "bertopic_as_document_topic_matrix",
      "title": "Coerce to a document-topic probability matrix",
      "topics": [
        "bertopic_as_document_topic_matrix"
      ]
    },
    {
      "page": "bertopic_available",
      "title": "Is Python + BERTopic available?",
      "topics": [
        "bertopic_available"
      ]
    },
    {
      "page": "bertopic_find_topics",
      "title": "Find nearest topics for a query string",
      "topics": [
        "bertopic_find_topics"
      ]
    },
    {
      "page": "bertopic_fit",
      "title": "Fit BERTopic from R",
      "topics": [
        "bertopic_fit"
      ]
    },
    {
      "page": "bertopic_get_document_info",
      "title": "Document-level information",
      "topics": [
        "bertopic_get_document_info"
      ]
    },
    {
      "page": "bertopic_get_representative_docs",
      "title": "Representative documents for a topic",
      "topics": [
        "bertopic_get_representative_docs"
      ]
    },
    {
      "page": "bertopic_has_embedding_model",
      "title": "Does the model have a usable embedding model?",
      "topics": [
        "bertopic_has_embedding_model"
      ]
    },
    {
      "page": "bertopic_load",
      "title": "Load a BERTopic model",
      "topics": [
        "bertopic_load"
      ]
    },
    {
      "page": "bertopic_reduce_topics",
      "title": "Reduce/merge topics",
      "topics": [
        "bertopic_reduce_topics"
      ]
    },
    {
      "page": "bertopic_save",
      "title": "Save a BERTopic model",
      "topics": [
        "bertopic_save"
      ]
    },
    {
      "page": "bertopic_self_check",
      "title": "Quick self-check for the BERTopic R interface",
      "topics": [
        "bertopic_self_check"
      ]
    },
    {
      "page": "bertopic_session_info",
      "title": "Summarize Python/BERTopic session info",
      "topics": [
        "bertopic_session_info"
      ]
    },
    {
      "page": "bertopic_set_embedding_model",
      "title": "Replace or set the embedding model",
      "topics": [
        "bertopic_set_embedding_model"
      ]
    },
    {
      "page": "bertopic_set_topic_labels",
      "title": "Relabel topics",
      "topics": [
        "bertopic_set_topic_labels"
      ]
    },
    {
      "page": "bertopic_topic_terms",
      "title": "Get top terms for a topic",
      "topics": [
        "bertopic_topic_terms"
      ]
    },
    {
      "page": "bertopic_topics",
      "title": "Get topic info as a tibble",
      "topics": [
        "bertopic_topics"
      ]
    },
    {
      "page": "bertopic_topics_over_time",
      "title": "Compute topics over time",
      "topics": [
        "bertopic_topics_over_time"
      ]
    },
    {
      "page": "bertopic_transform",
      "title": "Transform new documents with a fitted BERTopic model",
      "topics": [
        "bertopic_transform"
      ]
    },
    {
      "page": "bertopic_update_topics",
      "title": "Update topic representations",
      "topics": [
        "bertopic_update_topics"
      ]
    },
    {
      "page": "bertopic_visualize_barchart",
      "title": "Visualize a topic barchart",
      "topics": [
        "bertopic_visualize_barchart"
      ]
    },
    {
      "page": "bertopic_visualize_distribution",
      "title": "Visualize topic probability distribution",
      "topics": [
        "bertopic_visualize_distribution"
      ]
    },
    {
      "page": "bertopic_visualize_documents",
      "title": "Visualize embedded documents",
      "topics": [
        "bertopic_visualize_documents"
      ]
    },
    {
      "page": "bertopic_visualize_heatmap",
      "title": "Visualize topic similarity heatmap",
      "topics": [
        "bertopic_visualize_heatmap"
      ]
    },
    {
      "page": "bertopic_visualize_hierarchical_documents",
      "title": "Visualize hierarchical documents and topics",
      "topics": [
        "bertopic_visualize_hierarchical_documents"
      ]
    },
    {
      "page": "bertopic_visualize_hierarchy",
      "title": "Visualize hierarchical clustering of topics",
      "topics": [
        "bertopic_visualize_hierarchy"
      ]
    },
    {
      "page": "bertopic_visualize_term_rank",
      "title": "Visualize term rank evolution",
      "topics": [
        "bertopic_visualize_term_rank"
      ]
    },
    {
      "page": "bertopic_visualize_topics",
      "title": "Visualize topic map",
      "topics": [
        "bertopic_visualize_topics"
      ]
    },
    {
      "page": "bertopic_visualize_topics_over_time",
      "title": "Visualize topics over time",
      "topics": [
        "bertopic_visualize_topics_over_time"
      ]
    },
    {
      "page": "bertopic_visualize_topics_per_class",
      "title": "Visualize topics per class",
      "topics": [
        "bertopic_visualize_topics_per_class"
      ]
    },
    {
      "page": "coef.bertopic_r",
      "title": "Coefficients (top terms) for BERTopic",
      "topics": [
        "coef.bertopic_r"
      ]
    },
    {
      "page": "fortify.bertopic_r",
      "title": "Fortify method for ggplot2",
      "topics": [
        "fortify.bertopic_r"
      ]
    },
    {
      "page": "install_py_deps",
      "title": "Install Python dependencies for BERTopic (auto route)",
      "topics": [
        "install_py_deps"
      ]
    },
    {
      "page": "install_py_deps_conda",
      "title": "Install Python dependencies for BERTopic (Conda route)",
      "topics": [
        "install_py_deps_conda"
      ]
    },
    {
      "page": "install_py_deps_venv",
      "title": "Install Python dependencies for BERTopic (virtualenv route)",
      "topics": [
        "install_py_deps_venv"
      ]
    },
    {
      "page": "predict.bertopic_r",
      "title": "Predict method for BERTopic models",
      "topics": [
        "predict.bertopic_r"
      ]
    },
    {
      "page": "print.bertopic_r",
      "title": "Print method for bertopic_r",
      "topics": [
        "print.bertopic_r"
      ]
    },
    {
      "page": "set_bertopic_seed",
      "title": "Set random seed for R and Python backends",
      "topics": [
        "set_bertopic_seed"
      ]
    },
    {
      "page": "sms_spam",
      "title": "SMS Spam Collection (UCI) - subset for examples",
      "topics": [
        "sms_spam"
      ]
    },
    {
      "page": "summary.bertopic_r",
      "title": "Summary for BERTopic models",
      "topics": [
        "summary.bertopic_r"
      ]
    },
    {
      "page": "use_bertopic",
      "title": "Bind current R session to the BERTopic environment (auto route)",
      "topics": [
        "use_bertopic"
      ]
    },
    {
      "page": "use_bertopic_condaenv",
      "title": "Bind current R session to a BERTopic Conda environment",
      "topics": [
        "use_bertopic_condaenv"
      ]
    },
    {
      "page": "use_bertopic_virtualenv",
      "title": "Bind current R session to a BERTopic virtualenv",
      "topics": [
        "use_bertopic_virtualenv"
      ]
    }
  ],
  "_readme": "https://github.com/feng-ji-lab/bertopic/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "glue",
    "here",
    "jsonlite",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "png",
    "rappdirs",
    "Rcpp",
    "RcppTOML",
    "reticulate",
    "rlang",
    "rprojroot",
    "tibble",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 4.276461804173244,
  "_indexed": true,
  "_nocasepkg": "bertopic",
  "_universes": [
    "feng-ji-lab"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-27T09:25:59.000Z",
      "distro": "noble",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "18f893338c22db063408e94ce33e1ec8a08cd410ce753652b6a5786a15327cde",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-27T09:25:36.000Z",
      "distro": "noble",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "add68166834ac6612f5ac62c8fa8991e39dda01840022ed85921b2e0c3fee5a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-27T09:25:36.000Z",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "768299f9f508274f58e7092fb6b1eecf268dae327b7bb4540375971adaf01db6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-27T09:25:41.000Z",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "0e2ff5618d8bfced72d144110c4fe533839825bcd809f9f0ff0110a76f8050d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-27T09:25:40.000Z",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "e12613b1fa9f028a364d9a1768f060bb87f6af1f1be79cdfed72d8db4eb88a60",
      "status": "success",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-27T09:25:00.000Z",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "dd25d3283af25482745e5cb99364d47c5cf78de7307498685accbe5497e3b732",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-27T09:25:10.000Z",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "69457fb6f3e5b12df4311e90a70b4d6d88f31a8c5ca61b9f9109b79ab0ab7c1f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-27T09:24:56.000Z",
      "commit": "6e7a8d562705bd299acb9f40b65a37d2a6439eb6",
      "fileid": "1c5e41e7988f39bc312ad70666969322a224089929e8995cdd1455608214730b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/feng-ji-lab/actions/runs/26502564391"
    }
  ]
}