repr

String and byte representations for all kinds of R objects

https://github.com/irkernel/repr

Science Score: 13.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.3%) to scientific vocabulary

Keywords from Contributors

grammar rmarkdown package-creation pandoc data-manipulation tidy-data book literate-programming travis-ci coverage-report
Last synced: 10 months ago · JSON representation

Repository

String and byte representations for all kinds of R objects

Basic Info
Statistics
  • Stars: 54
  • Watchers: 7
  • Forks: 33
  • Open Issues: 41
  • Releases: 29
Created over 11 years ago · Last pushed 12 months ago
Metadata Files
Readme Changelog License

README.md

repr b-CI b-CRAN

String and byte representations for all kinds of R objects.

This package exists to reliably create readable text (and viewable image) representations of data without the side effects print() can cause, such as invoking a pager and plotting to a plot device. In other words, all repr functions and methods are pure.

It is intended to be the basis of several packages that need to create rich text and graphics from R objects, such as Jupyter’s IRkernel, knitr, and others, such as a future more powerful replacement for R CMD Rd2pdf.

Exports

repr is a function delegating to the individual repr_* functions.

repr_*, e.g. repr_text, repr_html, and repr_png emit single-element character vectors or raw vectors. They have parameters also configurable via global options.

mime2repr is a list mapping all known mimetypes to repr_* functions, e.g. mime2repr[['application/pdf']] is repr_pdf.

format2repr does the same for simple format names. So format2repr$markdown is repr_markdown.

Imports

Per default, repr will not use any packages not part of the R distribution.

Only if you want to use repr_html.function and repr_latex.function, and specify the parameter highlight or option repr.function.highlight to be TRUE, then be sure to have highr installed.

Formats

Currently, the actually emitted formats are:

  • Plain text, for everything, using capture.output(print(thing)). This will fail if print(thing) plots it instead. Please report classes which do that and aren’t handled yet (such as recordedplot).

  • HTML, Markdown, and LaTeX, which are emitted for everything non-graphical

  • PNG, JPG, SVG, and PDF for everything graphical (ATM just recordedplot)

Why not Pander?

Pander Is very configurable and does the same as this one, only just for Markdown. Why don’t we use it and use Pandoc to convert to other formats like it?

Because it emits just Markdown, which is the least semantic format available. A roundtrip through Markdown will undoubtedly create sub-par HTML and LaTeX.

Also Pander supports only text. Plots and images are also important to represent.

Pander is however awesome for high-quality Markdown so this project might want to depend on it.

Owner

  • Name: IRkernel
  • Login: IRkernel
  • Kind: organization

R kernel for Jupyter

GitHub Events

Total
  • Issues event: 7
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 7
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 3
  • Fork event: 1
  • Create event: 2
Last Year
  • Issues event: 7
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 7
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 3
  • Fork event: 1
  • Create event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 285
  • Total Committers: 20
  • Avg Commits per committer: 14.25
  • Development Distribution Score (DDS): 0.228
Past Year
  • Commits: 2
  • Committers: 2
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.5
Top Committers
Name Email Commits
Philipp A f****p@w****e 220
karldw k****w 18
Jan Schulz j****c@g****t 11
Thomas Kluyver t****l@g****m 11
Carson Sievert c****1@g****m 8
Ramnath Vaidyanathan r****a@g****m 2
Abiel Reinhart a****r@g****m 2
Adam Lyon l****l 1
Alberto Lusiani a****i@g****m 1
Dave Foster d****r@g****m 1
Denilson Figueiredo de Sá d****a@g****m 1
Fan-iX 6****X 1
Géraud g****r@g****m 1
Hadley Wickham h****m@g****m 1
Jim Hester j****r@g****m 1
Kun Ren m****l@r****e 1
Randy Lai r****i@g****m 1
Renan Valieris r****s 1
Will Beasley w****y@h****m 1
Zac Knitter z****r@p****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 76
  • Total pull requests: 42
  • Average time to close issues: 7 months
  • Average time to close pull requests: 2 months
  • Total issue authors: 51
  • Total pull request authors: 15
  • Average comments per issue: 4.04
  • Average comments per pull request: 2.12
  • Merged pull requests: 22
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 8
  • Average time to close issues: 10 months
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • flying-sheep (7)
  • MichaelChirico (6)
  • jankatins (6)
  • QuLogic (3)
  • michaelquinn32 (3)
  • valentas-kurauskas (2)
  • karldw (2)
  • yilong-serum (2)
  • cpsievert (2)
  • aguang (2)
  • terhorst (1)
  • kanny789 (1)
  • izahn (1)
  • antonwnk (1)
  • daniel-rojsanch (1)
Pull Request Authors
  • flying-sheep (18)
  • MichaelChirico (9)
  • cpsievert (4)
  • jankatins (2)
  • ramnathv (2)
  • abielr (1)
  • zknitter (1)
  • hadley (1)
  • wibeasley (1)
  • renkun-ken (1)
  • casparvl (1)
  • Fan-iX (1)
  • rvalieris (1)
  • harelfishbein (1)
  • alusiani (1)
Top Labels
Issue Labels
enhancement (5) upstream-bug (3) needs info (2) invalid (2) → IRkernel (1) bug (1) question (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 44,422 last-month
  • Total docker downloads: 112,160,157
  • Total dependent packages: 10
  • Total dependent repositories: 53
  • Total versions: 20
  • Total maintainers: 1
cran.r-project.org: repr

Serializable Representations

  • Versions: 20
  • Dependent Packages: 10
  • Dependent Repositories: 53
  • Downloads: 44,422 Last month
  • Docker Downloads: 112,160,157
Rankings
Downloads: 1.5%
Forks count: 2.2%
Dependent repos count: 3.3%
Dependent packages count: 5.3%
Average: 6.0%
Stargazers count: 6.6%
Docker downloads count: 17.3%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.0.1 depends
  • data.table * enhances
  • geojsonio * enhances
  • htmlwidgets * enhances
  • plotly * enhances
  • tibble * enhances
  • vegalite * enhances
  • base64enc * imports
  • grDevices * imports
  • htmltools * imports
  • jsonlite * imports
  • pillar >= 1.4.0 imports
  • utils * imports
  • Cairo * suggests
  • highr * suggests
  • leaflet * suggests
  • methods * suggests
  • stringr * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/r.yml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite