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
- Host: GitHub
- URL: https://github.com/paithiov909/convlog
- Owner: paithiov909
- License: apache-2.0
- Created: 2024-11-14T02:33:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-28T22:07:42.000Z (7 months ago)
- Last Synced: 2025-03-01T00:29:48.391Z (7 months ago)
- Language: Rust
- Homepage: https://paithiov909.r-universe.dev/convlog
- Size: 112 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
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"))
```