Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.8%) to scientific vocabulary
Keywords
fonts
r-package
star-trek
Last synced: 11 months ago
·
JSON representation
Repository
Star Trek fonts R package
Basic Info
- Host: GitHub
- Owner: leonawicz
- License: gpl-3.0
- Language: R
- Default Branch: master
- Homepage: https://leonawicz.github.io/trekfont/
- Size: 2.3 MB
Statistics
- Stars: 22
- Watchers: 4
- Forks: 2
- Open Issues: 0
- Releases: 4
Topics
fonts
r-package
star-trek
Created about 8 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
Changelog
License
Code of conduct
Codemeta
README.Rmd
--- output: github_document --- # trekfont[](https://www.repostatus.org/) [](https://github.com/leonawicz/trekfont/actions/workflows/R-CMD-check.yaml) [](https://app.codecov.io/gh/leonawicz/trekcolors) [](https://CRAN.R-project.org/package=trekfont) [](https://cran.r-project.org/package=trekfont) [](https://github.com/leonawicz/trekfont) This package contains true type and open type Star Trek fonts.
## Installation Install `trekfont` from CRAN with ``` r install.packages("trekfont") ``` Install the development version from GitHub with ``` r # install.packages("remotes") remotes::install_github("leonawicz/trekfont") ``` ## Examples `trekfonts` contains one dataset, `trekfonts`, which is just a character vector of all 107 available font files. Font files can be installed using the [sysfonts](https://CRAN.R-project.org/package=sysfonts) package. Here are some examples, leveraging `sysfonts` and `showtext`. ```{r font_setup, eval=FALSE} # install.packages("trekfont") library(showtext) font <- c("Khan", "StarNext", "FederationDS9Title", "Federation", "Klingon", "ModernVulcan", "TNGcast", "FederationStarfleet") path <- system.file(paste0("fonts/", font, ".ttf"), package = "trekfont") for(i in seq_along(font)) font_add(font[i], path[i]) font_families() showtext_auto() ``` Use base graphics... ```{r font_plot, eval=FALSE} y <- seq(0.1, 0.9, length.out = 7) txt <- "The Quick Brown Fox Jumps Over The Lazy Dog" plot(0, 0, type = "n", ylim = c(0, 1), main = "trekfont package font sample", family = font[8]) for(i in 1:7) text(0, y[i], txt, family = font[i]) ``` or ggplot2... ```{r font_ggplot, eval=FALSE} library(ggplot2) g <- ggplot() + theme_gray(base_family = font[8]) + ggtitle("trekfont package font sample") for(i in 1:7) g <- g + annotate("text", 0, y[i], label = txt, family = font[i], size = 12.5) g ```
Did you ever think you would be annotating your plots in Vulcan and Klingon? The [rtrek](https://github.com/leonawicz/rtrek) package does not import `trekfont`, but it does provide a convenient wrapper function, `rtrek::st_font()`, for previewing the various fonts if `trekfont` is installed. This is the example plot shown at the top. ## Packages in the trekverse
rtrek: The core Star Trek package
Datasets related to Star Trek, API wrappers to external data sources, and more.
lcars: LCARS aesthetic for Shiny
Create Shiny apps based on the Library Computer Access/Retrieval System (LCARS).
trekcolors: A color palette package
Predefined and customizable Star Trek themed color palettes and related functions.
trekfont: A fonts package
True (Trek) type fonts to style your Star Trek themed graphics text.
## Citation Matthew Leonawicz (`r substr(Sys.Date(), 1, 4)`). trekfont: Star Trek Fonts Collection. R package version 0.9.6. https://CRAN.R-project.org/package=trekfont ## Contribute Contributions are welcome. Contribute through GitHub via pull request. Please create an issue first if it is regarding any substantive feature add or change. --- Please note that the `trekfont` project is released with a [Contributor Code of Conduct](https://github.com/leonawicz/trekfont/blob/master/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.
Owner
- Name: Matt Leonawicz
- Login: leonawicz
- Kind: user
- Location: Denver, Colorado, USA
- Repositories: 89
- Profile: https://github.com/leonawicz
R and Shiny developer | Software developer @ropensci @r-music
CodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "trekfont",
"description": "Provides a collection of true type and open type Star Trek-themed fonts.",
"name": "trekfont: Star Trek Fonts Collection",
"codeRepository": "https://github.com/leonawicz/trekfont",
"issueTracker": "https://github.com/leonawicz/trekfont/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.9.6",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"author": [
{
"@type": "Person",
"givenName": "Matthew",
"familyName": "Leonawicz",
"email": "rpkgs@pm.me",
"@id": "https://orcid.org/0000-0001-9452-2771"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": "Matthew",
"familyName": "Leonawicz",
"email": "rpkgs@pm.me",
"@id": "https://orcid.org/0000-0001-9452-2771"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "testthat",
"name": "testthat",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=testthat"
},
{
"@type": "SoftwareApplication",
"identifier": "covr",
"name": "covr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=covr"
}
],
"softwareRequirements": {
"1": {
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 2.10"
},
"SystemRequirements": null
},
"fileSize": "4526.933KB"
}
GitHub Events
Total
- Watch event: 2
- Fork event: 1
Last Year
- Watch event: 2
- Fork event: 1
Committers
Last synced: over 3 years ago
All Time
- Total Commits: 46
- Total Committers: 2
- Avg Commits per committer: 23.0
- Development Distribution Score (DDS): 0.37
Top Committers
| Name | Commits | |
|---|---|---|
| leonawicz | m****t@g****m | 29 |
| leonawicz | m****z@e****m | 17 |
Committer Domains (Top 20 + Academic)
esource.com: 1
Issues and Pull Requests
Last synced: almost 2 years ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 250 last-month
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 5
- Total maintainers: 1
cran.r-project.org: trekfont
Star Trek Fonts Collection
- Homepage: https://github.com/leonawicz/trekfont
- Documentation: http://cran.r-project.org/web/packages/trekfont/trekfont.pdf
- License: GPL-3
-
Latest release: 0.9.6
published almost 2 years ago
Rankings
Stargazers count: 12.9%
Forks count: 17.1%
Dependent packages count: 18.1%
Dependent repos count: 23.9%
Average: 26.1%
Downloads: 58.3%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- covr * suggests
- testthat * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- codecov/codecov-action v4 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
[](https://www.repostatus.org/)
[](https://github.com/leonawicz/trekfont/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/leonawicz/trekcolors)
[](https://CRAN.R-project.org/package=trekfont)
[](https://cran.r-project.org/package=trekfont)
[](https://github.com/leonawicz/trekfont)
This package contains true type and open type Star Trek fonts.
## Installation
Install `trekfont` from CRAN with
``` r
install.packages("trekfont")
```
Install the development version from GitHub with
``` r
# install.packages("remotes")
remotes::install_github("leonawicz/trekfont")
```
## Examples
`trekfonts` contains one dataset, `trekfonts`, which is just a character vector of all 107 available font files.
Font files can be installed using the [sysfonts](https://CRAN.R-project.org/package=sysfonts) package.
Here are some examples, leveraging `sysfonts` and `showtext`.
```{r font_setup, eval=FALSE}
# install.packages("trekfont")
library(showtext)
font <- c("Khan", "StarNext", "FederationDS9Title", "Federation", "Klingon", "ModernVulcan", "TNGcast", "FederationStarfleet")
path <- system.file(paste0("fonts/", font, ".ttf"), package = "trekfont")
for(i in seq_along(font)) font_add(font[i], path[i])
font_families()
showtext_auto()
```
Use base graphics...
```{r font_plot, eval=FALSE}
y <- seq(0.1, 0.9, length.out = 7)
txt <- "The Quick Brown Fox Jumps Over The Lazy Dog"
plot(0, 0, type = "n", ylim = c(0, 1), main = "trekfont package font sample", family = font[8])
for(i in 1:7) text(0, y[i], txt, family = font[i])
```
or ggplot2...
```{r font_ggplot, eval=FALSE}
library(ggplot2)
g <- ggplot() + theme_gray(base_family = font[8]) + ggtitle("trekfont package font sample")
for(i in 1:7) g <- g + annotate("text", 0, y[i], label = txt, family = font[i], size = 12.5)
g
```
Did you ever think you would be annotating your plots in Vulcan and Klingon?
The [rtrek](https://github.com/leonawicz/rtrek) package does not import `trekfont`, but it does provide a convenient wrapper function, `rtrek::st_font()`, for previewing the various fonts if `trekfont` is installed. This is the example plot shown at the top.
## Packages in the trekverse



