Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maelle/pockage
- Owner: maelle
- License: other
- Created: 2023-10-06T08:23:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-06T08:49:18.000Z (about 1 year ago)
- Last Synced: 2024-10-11T18:24:10.988Z (2 months ago)
- Language: R
- Homepage: https://masalmon.eu/2023/10/06/potools-mwe/
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - maelle/pockage - Minimal working example of potools usage (R)
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())
```