qrcode

QRcode Generator for R

https://github.com/thierryo/qrcode

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.4%) to scientific vocabulary

Keywords

cran qrcode qrcode-generator r-package r-project
Last synced: 6 months ago · JSON representation ·

Repository

QRcode Generator for R

Basic Info
Statistics
  • Stars: 46
  • Watchers: 3
  • Forks: 7
  • Open Issues: 2
  • Releases: 7
Topics
cran qrcode qrcode-generator r-package r-project
Created over 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Contributing Funding License Code of conduct Citation Zenodo

README.Rmd

---
output: github_document
---




  [![CRAN status](https://www.r-pkg.org/badges/version/qrcode)](https://CRAN.R-project.org/package=qrcode)
  [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
  [![Lifecycle: stable](https://lifecycle.r-lib.org/articles/figures/lifecycle-stable.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable-1)
  ![GitHub](https://img.shields.io/github/license/thierryo/qrcode)
  [![Codecov](https://codecov.io/gh/ThierryO/qrcode/branch/main/graph/badge.svg?token=uOVomusTtw)](https://app.codecov.io/gh/ThierryO/qrcode)
  ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/thierryo/qrcode.svg)
  ![GitHub repo size](https://img.shields.io/github/repo-size/thierryo/qrcode.svg)
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5040089.svg)](https://doi.org/10.5281/zenodo.5040089)


# QRcode Generator for R A hexagon with the word qrcode and a qrcode linking to the DOI

A [QR code](https://en.wikipedia.org/wiki/QR_code) is a two-dimensional barcode developed by the Denso Wave company.

The current implementation handles three modes: numeric, alphanumeric and byte.
Kanji is currently not supported.
Please contact the maintainer if you need it.

- **Numeric**: only digits from 0 to 9
- **Alphanumeric**: all numeric characters, upper case `LETTERS`, and the characters `" "` (space), `"$"`, `"%"`, `"*"`, `"+"`, `"-"`, `"."`, `"/"` and `":"`
- **Byte**: All characters from the Latin 1 (ISO 8859-1) character set.

## Main functions

The main `qr_code()` function returns an object of the `qr_code` class.
This is a logical matrix with specific methods for printing and plotting.
The print version uses UTF-8 drawing symbols and the result depend on the font used.
For a better quality QR code it best to use `plot()` or `generate_svg()`.

```{r base}
library(qrcode)
code <- qr_code("QR CODE")
print(code)
```

```{r example, fig.path = "man/figures/", fig.alt = "A QR code displaying the value 'QR CODE'"}
plot(code)
```

```{r svg}
generate_svg(code, filename = "man/figures/qr.svg")
```

![A QR code displaying the value 'QR CODE'](man/figures/qr.svg)

## Installation

The `qrcode` package is available from CRAN, R universe and GitHub.

```{r eval = FALSE}
# install from CRAN
install.packages("qrcode")
# install from R universe
install.packages("qrcode", repos = "https://thierryo.r-universe.dev")
# install from GitHub use the remotes package
remotes::install_github("ThierryO/qrcode")
```

## Legacy code

The legacy function `qrcode_gen()` had several known bugs.
Because of these bugs, we re-implemented the code from scratch in version 0.1.4.
We created new functions.
The old functions are defunct since version 0.2.0.
We removed them in version 0.2.2.

Owner

  • Name: Thierry Onkelinx
  • Login: ThierryO
  • Kind: user
  • Location: Brussels
  • Company: Research Institute for Nature and Forest (INBO)

Citation (CITATION.cff)

cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: "qrcode: Generate QRcodes with R"
authors:
- given-names: Thierry
  family-names: Onkelinx
  orcid: 0000-0001-8804-4216
- given-names: Victor
  family-names: Teh
keywords:
- two-dimensional barcode
- matrix barcode
contact:
- given-names: Thierry
  family-names: Onkelinx
  orcid: 0000-0001-8804-4216
doi: 10.5281/zenodo.5040088
license: GPL-3.0
repository-code: https://github.com/ThierryO/qrcode/
type: software
abstract: "Create static QR codes in R. The content of the QR code is exactly what
  the user defines. We don't add a redirect URL, making it impossible for us to track
  the usage of the QR code. This allows to generate fast, free to use and privacy
  friendly QR codes."
identifiers:
- type: doi
  value: 10.5281/zenodo.5040088
- type: url
  value: https://thierryo.github.io/qrcode/
version: 0.3.0

GitHub Events

Total
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 3
  • Push event: 1
  • Pull request event: 1
Last Year
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 3
  • Push event: 1
  • Pull request event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 116
  • Total Committers: 4
  • Avg Commits per committer: 29.0
  • Development Distribution Score (DDS): 0.095
Past Year
  • Commits: 43
  • Committers: 1
  • Avg Commits per committer: 43.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Thierry Onkelinx t****x@i****e 105
victorteh v****h@g****m 7
ThierryO T****x@i****e 3
Thierry Onkelinx T****O 1
Committer Domains (Top 20 + Academic)
inbo.be: 2

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 11
  • Total pull requests: 11
  • Average time to close issues: 3 months
  • Average time to close pull requests: 8 days
  • Total issue authors: 10
  • Total pull request authors: 2
  • Average comments per issue: 2.73
  • Average comments per pull request: 1.73
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 15 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 3.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ThierryO (2)
  • markscherz (1)
  • klausbraun (1)
  • michael-morabito (1)
  • torfason (1)
  • badgettrg (1)
  • smallworlnd (1)
  • larry77 (1)
  • JAQuent (1)
  • kaveelim (1)
Pull Request Authors
  • ThierryO (11)
  • philipp-baumann (1)
Top Labels
Issue Labels
bug (4) enhancement (1)
Pull Request Labels

Dependencies

DESCRIPTION cran
  • R >= 3.0.0 depends
  • R.utils * imports
  • assertthat * imports
  • stats * imports
  • stringr * imports
  • utils * imports
  • httr * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/check_on_branch.yml actions
  • inbo/actions/check_pkg token composite
.github/workflows/check_on_different_r_os.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/upload-artifact master composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/check_on_main.yml actions
  • inbo/actions/check_pkg token composite
.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/create-release v1 composite
.github/workflows/recheck.yml actions
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite