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

https://github.com/egnha/quine

A Quine in R
https://github.com/egnha/quine

quine r

Last synced: 4 months ago
JSON representation

A Quine in R

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

[![Travis build status](https://travis-ci.org/egnha/quine.svg?branch=master)](https://travis-ci.org/egnha/quine)
[![codecov](https://codecov.io/gh/egnha/quine/branch/master/graph/badge.svg)](https://codecov.io/gh/egnha/quine)

# quine

A trival (non-empty) [quine](https://en.wikipedia.org/wiki/Quine_(computing)) in
R, just for the hell of it: the functions `quine_lang()` and `quine_str()` are
quines that output a language object and string, respectively.

The file `inst/bin/quine` is the same quine function as a script. Executing it
outputs its contents, i.e., `cat quine` and `./quine` are identical.

## Installation

```{r eval = FALSE}
# install.packages("devtools")
devtools::install_github("egnha/quine")
```