tidyverse / magrittr

Improve the readability of R code with the pipe

Home Page:https://magrittr.tidyverse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Output after `%$%` in development version not printed in R 3.6.3

iago-pssjd opened this issue · comments

With version 1.5:

> library(magrittr)
> mtcars %$% table(cyl)
cyl
 4  6  8 
11  7 14
> 

It also works with development version for R >= 4.0.0.

However, development version does print necessary for R 3.6.3:

> table(mtcars$cyl)

 4  6  8 
11  7 14 
> mtcars %$% table(cyl)
> mtcars %$% table(cyl) %>% print()
cyl
 4  6  8 
11  7 14
> 
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS

Matrix products: default
BLAS:   /usr/lib/atlas-base/atlas/libblas.so.3.0
LAPACK: /usr/lib/atlas-base/atlas/liblapack.so.3.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8   
 [6] LC_MESSAGES=C.UTF-8    LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C           LC_TELEPHONE=C        
[11] LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] magrittr_1.5.0.9000

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3 

Thank you!

Thanks for the report!