

<!-- README.md is generated from README.qmd. Please edit that file -->

# grumpy

<!-- badges: start -->

[![R-CMD-check](https://github.com/Bisaloo/grumpy/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Bisaloo/grumpy/actions/workflows/R-CMD-check.yaml)
[![Codecov test
coverage](https://codecov.io/gh/Bisaloo/grumpy/graph/badge.svg)](https://app.codecov.io/gh/Bisaloo/grumpy)
<!-- badges: end -->

The grumpy R package provides a way to read NumPy’s `.npy` files into R.
It supports a wide range of data types and array shapes.

## Installation

You can install the released version of grumpy with:

``` r
install.packages("grumpy")
```

and the development version like so:

``` r
# install.packages("pak")
pak::pak("Bisaloo/grumpy")
```

## Example

``` r
library(grumpy)
read_npy(system.file("extdata", "test_2d.npy", package = "grumpy"))
#>      [,1] [,2] [,3] [,4]
#> [1,]    0    3    6    9
#> [2,]    1    4    7   10
#> [3,]    2    5    8   11
```
