{"action":"opened","issue":{"url":"https://api.github.com/repos/yihui/printr/issues/8","labels_url":"https://api.github.com/repos/yihui/printr/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/yihui/printr/issues/8/comments","events_url":"https://api.github.com/repos/yihui/printr/issues/8/events","html_url":"https://github.com/yihui/printr/issues/8","id":94940827,"number":8,"title":"compatibility with microbenchmark","user":{"login":"ignacio82","id":1833309,"avatar_url":"https://avatars.githubusercontent.com/u/1833309?v=3","gravatar_id":"","url":"https://api.github.com/users/ignacio82","html_url":"https://github.com/ignacio82","followers_url":"https://api.github.com/users/ignacio82/followers","following_url":"https://api.github.com/users/ignacio82/following{/other_user}","gists_url":"https://api.github.com/users/ignacio82/gists{/gist_id}","starred_url":"https://api.github.com/users/ignacio82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignacio82/subscriptions","organizations_url":"https://api.github.com/users/ignacio82/orgs","repos_url":"https://api.github.com/users/ignacio82/repos","events_url":"https://api.github.com/users/ignacio82/events{/privacy}","received_events_url":"https://api.github.com/users/ignacio82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T13:01:17Z","updated_at":"2015-07-14T13:01:17Z","closed_at":null,"body":"I cannot make `printr` and `microbenchmark` work well together. For example:\r\n\r\n    ---\r\n    title: \"test\"\r\n    author: \"Ignacio\"\r\n    output: html_document\r\n    ---\r\n    \r\n    ```{r}\r\n    library(printr)\r\n    library(microbenchmark)\r\n    a1 <- a2 <- a3 <- a4 <- numeric(0)\r\n    \r\n    res <- microbenchmark(a1 <- c(a1, 1),\r\n                          a2 <- append(a2, 1),\r\n                          a3[length(a3) + 1] <- 1,\r\n                          a4[[length(a4) + 1]] <- 1,\r\n                          times=100L)\r\n    tbl<-print(res)\r\n    tbl\r\n    ```\r\n\r\nPrints the table twice, once with good formatting and one without. If i change\r\n\r\n    tbl<-print(res)\r\n    tbl\r\n\r\nto just\r\n\r\n    print(res)\r\n\r\nI get the table without formatting.\r\n\r\nThanks!\r\n\r\n"}}