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
Repository
String and byte representations for all kinds of R objects
Basic Info
- Host: GitHub
- Owner: IRkernel
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://irkernel.github.io/docs/repr/
- Size: 312 KB
Statistics
- Stars: 54
- Watchers: 7
- Forks: 33
- Open Issues: 41
- Releases: 29
Metadata Files
README.md
repr

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 ifprint(thing)plots it instead. Please report classes which do that and aren’t handled yet (such asrecordedplot).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
- Website: https://irkernel.github.io/
- Repositories: 4
- Profile: https://github.com/IRkernel
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
Top Committers
| Name | 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 |
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
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
- Homepage: https://github.com/IRkernel/repr/
- Documentation: http://cran.r-project.org/web/packages/repr/repr.pdf
- License: GPL (≥ 3)
-
Latest release: 1.1.7
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- 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
- 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