repr
repr copied to clipboard
String and byte representations for all kinds of R objects
``` repr::repr_text(matrix(nrow = 0, ncol = 100)) # Warning message: # In cbind(parts$left, ellip_h, parts$right, deparse.level = 0L) : # number of rows of result is not a multiple of...
Since R-4.2.0, HTML help can now contain TeX-like equations typeset using KaTeX or MathJax, unless the `_R_HELP_ENABLE_ENHANCED_HTML_` environment variable is set to a false value (documented in `NEWS`). Unfortunately, it's...
Hi team! Here's a reprex ```r library(repr) library(tibble) tbl_obj
Hi team! Here's a reprex. ```r library(tibble) library(repr) tbl_obj
If ``` options(repr.vector.max.items = 10) vec = letters names(vec) = LETTERS ``` Then ``` vec # A:'a' B:'b' C:'c' D:'d' E:'e' F: ⋯ G:'v' H:'w' I:'x' J:'y' K:'z' ``` But...
@takluyver said in https://github.com/IRkernel/IRkernel/pull/224#issuecomment-161316782: > I ran into another unicode issue while testing this. If R thinks it can't display a character, it escapes it like this: `` (vs Python...
There appears to still be an issue with rich display, a la https://github.com/IRkernel/repr/issues/97 and https://github.com/IRkernel/repr/issues/131 ```r a = '[{"something":{"weird":1}}]' jsonlite::fromJSON(a) b = '{"something":{"weird":1}}' jsonlite::fromJSON(b) ``` Example `b` works fine. Example...
See IRkernel/IRkernel#515. arrays get output like vectors.
Although not commonly used, htmltools::htmlDependency() has an attachment argument. https://github.com/rstudio/htmltools/blob/master/R/html_dependency.R When rendering the widget, this creates `` elements in the html. https://github.com/rstudio/htmltools/blob/9abc3f2d9e23e9f02a0945c526d8a3de77f9cec4/R/html_dependency.R#L64 From what I can tell, the current repr...
I would like to be able to set the size of my figure in pixels rather than inches using `options()` IRkernel used to have `set_plot_options()` function which permitted specifying `units`...