Skip to content

prints complete table with data.table when update by reference #10

Open
@ghost

Description


---
title: "copy this into a Rmd"
author: "Henk Harmsen"
date: "September 10, 2015"
output: html_document

---

```{r}
library(data.table)

data(mtcars)
df = data.table(mtcars)
```

this works, no intention to print/head table:

```{r}
df[, mpg2 := mpg * 2]
```

but after loading printr, update by reference prints out the whole table:

```{r}
library(printr)
df[, mpg3 := mpg2 / 2]
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions