Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maelle/pockage

Minimal working example of potools usage
https://github.com/maelle/pockage

Last synced: about 1 month ago
JSON representation

Minimal working example of potools usage

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%"
)
```

# pockage

The goal of pockage is to showcase usage of potools for translating messages
in a package.

## Installation

You can install the development version of pockage from [GitHub](https://github.com/) with:

``` r
# install.packages("pak")
pak::pak("maelle/pockage")
```

## Example

This is a basic example which shows you how pockage behaves:

```{r example}
library(pockage)
speak()
withr::with_language("es", speak())
withr::with_language("ca", speak())
withr::with_language("fr", speak())
```