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

https://github.com/paithiov909/convlog

Read 'tenhou.net/6' format files into tibbles
https://github.com/paithiov909/convlog

Last synced: 6 months ago
JSON representation

Read 'tenhou.net/6' format files into tibbles

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%"
)
pkgload::load_all(export_all = FALSE)
```

# convlog

convlog offers wrappers for the 'convlog' Rust crate from [Equim-chan/mjai-reviewer](https://github.com/Equim-chan/mjai-reviewer) that can directly read mahjong logs from 'tenhou.net/6' format into tibbles.

## Installation

To install from source package, the Rust toolchain is required.

```r
# install.packages("pak")
pak::pak("paithiov909/convlog")
```

## Example

```{r example}
library(convlog)

read_tenhou6(system.file("testdata/output_log.example.json", package = "convlog"))

read_mjlog(system.file("mjlog/2010091009gm-00a9-0000-83af2648&tw=2.mjlog", package = "convlog"))
```