Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mojaveazure/mamisc


https://github.com/mojaveazure/mamisc

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

```{r gh_url, include=FALSE}
ghurl <- function(x) {
x <- trimws(x = unlist(x = strsplit(x = x, split = ",")))
x <- grep(pattern = "https://github.com", x = x, value = TRUE)[1]
return(unname(obj = x))
}
```

```{r parse_desc, include=FALSE}
description <- read.dcf(file = "DESCRIPTION")
pkg <- as.vector(x = description[, "Package"])
github.url <- ghurl(x = description[, "URL"])
pkg.version <- package_version(x = description[1, "Version"])
stage <- if (pkg.version >= package_version(x = "1.0.0")) {
"stable"
} else if (pkg.version >= package_version(x = "0.1.0")) {
"maturing"
} else {
"experimental"
}
color <- switch(
EXPR = stage,
"stable" = "green",
"maturing" = "blue",
"experimental" = "orange"
)
```

[![Lifecycle](https://img.shields.io/badge/lifecycle-`r stage`-`r color`.svg)](`r github.url`)
[![CRAN Version](https://www.r-pkg.org/badges/version/`r pkg`)](https://cran.r-project.org/package=`r pkg`)
[![R-universe status badge](https://mojaveazure.r-universe.dev/badges/`r pkg`)](https://mojaveazure.r-universe.dev)

# `r pkg` v`r pkg.version`

### `r description[1, "Title"]`

---

```{r description, echo=FALSE, results="asis"}
cat(description[1, "Description"])
```

## Installation

You can install `r pkg` from GitHub with:

```{r devel_install, echo=FALSE, results="asis"}
github.base <- unlist(x = strsplit(x = github.url, split = "/"))
github.base <- github.base[(length(x = github.base) - 1):length(x = github.base)]
github.base <- paste(github.base, collapse = "/")
cat(
"```r",
"if (!requireNamespace('remotes', quietly = TRUE)) {",
" install.packages('remotes')",
"}",
paste0("remotes::install_github('", github.base, "')"),
"```",
sep = "\n"
)
```