Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jemus42/hugo-rstats-pkg-meta
The catchiest title of them all.
https://github.com/jemus42/hugo-rstats-pkg-meta
Last synced: 15 days ago
JSON representation
The catchiest title of them all.
- Host: GitHub
- URL: https://github.com/jemus42/hugo-rstats-pkg-meta
- Owner: jemus42
- License: mit
- Created: 2020-05-25T17:47:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T14:20:57.000Z (4 months ago)
- Last Synced: 2024-10-11T18:18:32.779Z (about 1 month ago)
- Language: R
- Homepage:
- Size: 13.1 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hugo-rstats-pkg-meta
> The catchies title of them all.
I don't know where this is going yet, please move along.
## Motivation
The goal is to auto-generate a file (or multiple files?) that are suitable as [Hugo data templates](https://gohugo.io/templates/data-templates/).
The idea is to collect some basic metadata about R packages and have easy access to said data via the use of Hugo templates and/or shortcodes.Currently I have generated *something* that at least collects _all_ the CRAN packages and basic metadata, but of course it would also be neat of GitHub-only packages would be included as well, but I have no idea how to handle that yet.
Initially, for my own use, that data was based on my locally installed packages, but since I hope to automate the process via GitHub Actions, this does not seem feasible.
## Current Status
- [`data/packages.yml`](data/packages.yml): Derived from my locally installed packages and used by my hugo shortcode.
- [`data/packages/cran.yml`](data/packages/cran.yml): Collected via `available.packages()` and `pkgsearch::cran_packages()`, so it should contain _all_ CRAN packages, but not with cleaned up URLs yet. Also, this file is >10MB.## Usage
To use this data with a Hugo site, you'll have to include it either as a theme component or a Hugo module in your `config.toml`:
```toml
[module]
[[module.imports]]
path = "github.com/jemus42/hugo-rstats-pkg-meta"
```