repr
repr copied to clipboard
String and byte representations for all kinds of R objects
(Originally posted in https://github.com/IRkernel/IRkernel/issues/447.) With R backend `data.frame(letter=c("A", "B&C", "D"), number=c(1000,2,30))` Displays something like this: | letter | value | |--------|-------| | A | 1000 | | A&B | ...
i just checked the code of `capabilities()`, and what @randy3k did in #62 is probably not that fast after all. this is the code: ``` r capabilities
``` R # https://blog.rstudio.org/2016/02/02/tidyr-0-4-0/ library(gapminder) library(dplyr) library(tidyr) by_country % group_by(continent, country) %>% nest() print(by_country) # prints ok by_country # has the content of the data column messed up ``` One...
``` R library("dplyr") library("tibble") library("jsonlite") download.file("http://jsonstudio.com/wp-content/uploads/2014/02/world_bank.zip", "world_bank.zip") world_bank
currently, `repr_markdown(matrix(1:4, 2))` calls `repr_markdown.numeric` which is pretty wrong… for a big matrix this results in `repr_markdown` taking a very long time for creating a huge bad string
The output of `methods()` has this class
Options include - https://github.com/jimhester/covr - https://github.com/MangoTheCat/testCoverage One predicate that every repr function for every format has to fullfill is ``` r r
this would really spice up the tables shown in the pager. also the pager differs in styling from the output since its tables don’t get styled at all. in jupyter/notebook#1182,...
This is what currently happens if a ggplot object raises an error: ``` R library(ggplot2) data repr_text.default does print -> evaluate registers a plot -> calls the handler for a...
@daroczig raised the very valid point in https://github.com/Rapporter/pander/pull/251, that we should not (re)implement how we do html and MD conversation of standard objects in repr: > Sorry for the silly...