{"id":13401106,"url":"https://github.com/leonawicz/rtrek","last_synced_at":"2025-09-06T17:12:14.105Z","repository":{"id":56934892,"uuid":"133585703","full_name":"leonawicz/rtrek","owner":"leonawicz","description":"R package for Star Trek datasets and related R functions.","archived":false,"fork":false,"pushed_at":"2025-06-20T00:14:21.000Z","size":22838,"stargazers_count":57,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-04T18:58:00.508Z","etag":null,"topics":["data","r-package","stapi","star-trek"],"latest_commit_sha":null,"homepage":"https://leonawicz.github.io/rtrek/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leonawicz.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2018-05-15T23:54:00.000Z","updated_at":"2025-06-19T21:23:53.000Z","dependencies_parsed_at":"2024-01-18T11:03:58.897Z","dependency_job_id":"ede2c6fc-4afe-444a-84b2-c1b6e9ae404a","html_url":"https://github.com/leonawicz/rtrek","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/leonawicz/rtrek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonawicz%2Frtrek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonawicz%2Frtrek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonawicz%2Frtrek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonawicz%2Frtrek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonawicz","download_url":"https://codeload.github.com/leonawicz/rtrek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonawicz%2Frtrek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273690671,"owners_count":25150633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","r-package","stapi","star-trek"],"created_at":"2024-07-30T19:00:58.745Z","updated_at":"2025-09-06T17:12:14.096Z","avatar_url":"https://github.com/leonawicz.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE, comment = \"#\u003e\", fig.path = \"man/figures/README-\",\n  message = FALSE, warning = FALSE, error = FALSE\n)\n```\n\n# rtrek \u003cimg src=\"man/figures/logo.png\" style=\"margin-left:10px;margin-bottom:5px;\" width=\"120\" align=\"right\"\u003e\n\n\u003c!-- badges: start --\u003e\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/)\n[![R-CMD-check](https://github.com/leonawicz/rtrek/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/leonawicz/rtrek/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/leonawicz/rtrek/graph/badge.svg)](https://app.codecov.io/gh/leonawicz/rtrek)\n[![CRAN status](https://www.r-pkg.org/badges/version/rtrek)](https://CRAN.R-project.org/package=rtrek)\n[![CRAN downloads](https://cranlogs.r-pkg.org/badges/grand-total/rtrek)](https://cran.r-project.org/package=rtrek) \n[![Github Stars](https://img.shields.io/github/stars/leonawicz/rtrek.svg?style=social\u0026label=Github)](https://github.com/leonawicz/rtrek)\n\u003c!-- badges: end --\u003e\n\nThe `rtrek` package provides datasets related to the Star Trek fictional universe and functions for working with those datasets. It interfaces with the [Star Trek API](http://stapi.co/) (STAPI), [Memory Alpha](https://memory-alpha.fandom.com/wiki/Portal:Main) and [Memory Beta](https://memory-beta.fandom.com/wiki/Main_Page) to retrieve data, metadata and other information relating to Star Trek.\n\nThe package also contains several local datasets covering a variety of topics such as Star Trek timeline data, universe species data and geopolitical data. Some of these are more information rich, while others are toy examples useful for simple demonstrations. The bulk of Star Trek data is accessed from external sources by API. A future version of `rtrek` will also include summary datasets resulting from text mining analyses of Star Trek novels.\n\n\u003cp style=\"text-align:center;\"\u003e\u003cimg src=\"https://github.com/leonawicz/rtrek/blob/master/data-raw/images/rtrek_app1.png?raw=true\" width=\"100%\"\u003e\u003c/p\u003e\n\n*Image: Example [Leaflet map](https://leonawicz.github.io/rtrek/articles/sc.html) using non-geographic Star Trek map tiles.*\n\n\u003cbr/\u003e\n\n## Installation\n\nInstall the CRAN release of `rtrek` with\n\n``` r\ninstall.packages(\"rtrek\")\n```\n\nInstall the development version from GitHub with\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"leonawicz/rtrek\")\n```\n\n\u003ch2 style=\"padding-bottom:0px;\"\u003eExamples\u003c/h2\u003e\u003cimg src=\"https://github.com/leonawicz/rtrek/blob/master/data-raw/images/dixon_hill.jpg?raw=true\" width=320 style=\"float: right; padding-left: 20px; padding-bottom:5px;\"\u003e\n\n\u003ch4 style=\"padding-top:50px;padding-bottom:0px;\"\u003eTime to be good detectives. Good thing Data has R installed.\u003c/h4\u003e\n\nThese are just a few examples to help you jump right in. See the package articles for more.\n\n### STAPI\n\nUse the Star Trek API (STAPI) to obtain information on the infamous character, Q. Specifically, retrieve data on his appearances and the stardates when he shows up.\n\nThe first API call does a lightweight, unobtrusive check to see how many pages of potential search results exist for characters in the database. There are a lot of characters.\n\nThe second call grabs only page two results. The third call uses the universal/unique ID `uid` to retrieve data on Q. Think of these three successive uses of `stapi()` as safe mode, search mode and extraction mode.\n\n```{r ex, thm = knitr::knit_theme$get(\"molokai\")}\nlibrary(rtrek)\nlibrary(dplyr)\nstapi(\"character\", page_count = TRUE)\n\nstapi(\"character\", page = 1) |\u003e select(uid, name)\n\nQ \u003c- \"CHMA0000025118\" #unique ID\nQ \u003c- stapi(\"character\", uid = Q)\nQ$episodes |\u003e select(uid, title, stardateFrom, stardateTo)\n```\n\n### Memory Alpha\n\nObtain content and metadata from the article about Spock on Memory Alpha:\n\n```{r spock}\nx \u003c- ma_article(\"Spock\")\nx\nx$metadata[[1]]$Born\n```\n\n### Memory Beta\n\nSpock was born in 2230. Obtain a subset of the Star Trek universe historical timeline for that year:\n\n```{r timeline}\nmb_timeline(2230)\n```\n\nLive long and prosper.\n\n## Packages in the trekverse\n\n\u003cdiv class=\"row\"\u003e\n\u003cdiv class=\"col-sm-2\"\u003e\n\u003ca href=\"https://github.com/leonawicz/rtrek\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/leonawicz/rtrek/master/man/figures/logo.png\" style=\"margin-right:20px;margin-bottom:0;\" width=\"120\" align=\"left\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv class=\"col-sm-10\"\u003e\n\u003ch4 style=\"padding:30px 0 0 0;margin-top:5px;margin-bottom:5px;\"\u003e\u003ca href=\"https://github.com/leonawicz/rtrek\"\u003ertrek\u003c/a\u003e: The core Star Trek package\u003c/h4\u003e\nDatasets related to Star Trek, API wrappers to external data sources, and more.\n\u003c/div\u003e\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv class=\"row\"\u003e\n\u003cdiv class=\"col-sm-2\"\u003e\n\u003ca href=\"https://github.com/leonawicz/lcars\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/leonawicz/lcars/master/man/figures/logo.png\" style=\"margin-right:20px;margin-bottom:0;\" width=\"120\" align=\"left\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv class=\"col-sm-10\"\u003e\n\u003ch4 style=\"padding:30px 0 0 0;margin-top:5px;margin-bottom:5px;\"\u003e\u003ca href=\"https://github.com/leonawicz/lcars\"\u003elcars\u003c/a\u003e: LCARS aesthetic for Shiny\u003c/h4\u003e\nCreate Shiny apps based on the Library Computer Access/Retrieval System (LCARS).\n\u003c/div\u003e\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv class=\"row\"\u003e\n\u003cdiv class=\"col-sm-2\"\u003e\n\u003ca href=\"https://github.com/leonawicz/trekcolors\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/leonawicz/trekcolors/master/man/figures/logo.png\" style=\"margin-right:20px;margin-bottom:0;\" width=\"120\" align=\"left\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv class=\"col-sm-10\"\u003e\n\u003ch4 style=\"padding:30px 0 0 0;margin-top:5px;margin-bottom:5px;\"\u003e\u003ca href=\"https://github.com/leonawicz/trekcolors\"\u003etrekcolors\u003c/a\u003e: A color palette package\u003c/h4\u003e\nPredefined and customizable Star Trek themed color palettes and related functions.\n\u003c/div\u003e\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv class=\"row\"\u003e\n\u003cdiv class=\"col-sm-2\"\u003e\n\u003ca href=\"https://github.com/leonawicz/trekfont\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/leonawicz/trekfont/master/man/figures/logo.png\" style=\"margin-right:20px;margin-bottom:0;\" width=\"120\" align=\"left\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv class=\"col-sm-10\"\u003e\n\u003ch4 style=\"padding:30px 0 0 0;margin-top:5px;margin-bottom:5px;\"\u003e\u003ca href=\"https://github.com/leonawicz/trekfont\"\u003etrekfont\u003c/a\u003e: A fonts package\u003c/h4\u003e\nTrue (Trek) type fonts to style your Star Trek themed graphics text.\n\u003c/div\u003e\u003c/div\u003e\n\n\u003cbr\u003e\n\n## Citation\n\nMatthew Leonawicz (`r substr(Sys.Date(), 1, 4)`). rtrek: Data analysis relating to Star Trek. R package version 0.5.2. https://CRAN.R-project.org/package=rtrek\n\n## Contribute\n\nContributions are welcome. Contribute through GitHub via pull request. Please create an issue first if it is regarding any substantive feature add or change.\n\n---\n\nPlease note that the `rtrek` project is released with a [Contributor Code of Conduct](https://github.com/leonawicz/rtrek/blob/master/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonawicz%2Frtrek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonawicz%2Frtrek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonawicz%2Frtrek/lists"}