Data_frame printing -- .Rmd code chunks are not defaulting to paged

I'm trying to figure out where else to look. My .Rmd files in the script editor are no longer defaulting to paged print. This problem occurs within the .Rmd file, not in the output. I can still see paged printing in the document output (html_notebook or html_document).

I've tried setting paged.print=TRUE

```{r, paged.print=TRUE}
starwars
```

I've tried adding the following in the YAML

---
title:  "foo"
output:
    html_document:
       df_print: paged
---

I've combed through the IDE Tools > Global Options

Can anyone suggest where else I might look. It feels like I've accidentally reset a global option as this is happening on all projects. Sadly, I cannot figure out how to fix this.

Can you provide the source code for a small file that exhibits the problem, and your system info?

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • sessionInfo() output

There was a conflict between R 3.5.0 and RStudio that caused symptoms like these, but it was patched a couple months back.

2 Likes

I should have added these details before....

Problem is described in more detail below. Or see GitHub to download reproducible code: https://github.com/libjohn/paging_problem

System details

using RStudio Desktop on a Window 10 workstation

Session info -------------------------------------------------
 setting  value                       
 version  R version 3.5.1 (2018-07-02)
 system   x86_64, mingw32             
 ui       RStudio (1.1.423)           
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            
 date     2018-09-06   

Steps to reproduce the problem

library(tidyverse)
library(devtools)
starwars

Describe the problem in detail

When running executing a code chunk to display a tibble (e.g. starwars dataset) I expect to see a paged dispaly in the actual .Rmd file. ie. 10 rows the data which can be dynamically scrolled by clicking left-righ and up-down (e.g. In the .nb.html output or in the .Rmd output, one would see a table displayed similarly to what is seen here.

Earlier I incorrectly stated that the tibble is displaying as "paged" in the output document (html_notebook or html_document) but I was wrong about that. To clarify, it is not showing as paged output in any of the three views: .Rmd file, .nb.html file, or .html file

Describe the behavior you expected

The tibble be printed as a paged table.

Session_Info

devtools::session_info()

Session info -------------------------------------------------
 setting  value                       
 version  R version 3.5.1 (2018-07-02)
 system   x86_64, mingw32             
 ui       RStudio (1.1.423)           
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            
 date     2018-09-06                  

Packages -----------------------------------------------------
 package    * version date       source        
 assertthat   0.2.0   2017-04-11 CRAN (R 3.5.1)
 backports    1.1.2   2017-12-13 CRAN (R 3.5.0)
 base       * 3.5.1   2018-07-02 local         
 base64enc    0.1-3   2015-07-28 CRAN (R 3.5.0)
 bindr        0.1.1   2018-03-13 CRAN (R 3.5.1)
 bindrcpp     0.2.2   2018-03-29 CRAN (R 3.5.1)
 broom        0.4.5   2018-07-03 CRAN (R 3.5.1)
 cellranger   1.1.0   2016-07-27 CRAN (R 3.5.1)
 cli          1.0.0   2017-11-05 CRAN (R 3.5.1)
 colorspace   1.3-2   2016-12-14 CRAN (R 3.5.1)
 compiler     3.5.1   2018-07-02 local         
 crayon       1.3.4   2017-09-16 CRAN (R 3.5.1)
 datasets   * 3.5.1   2018-07-02 local         
 devtools   * 1.13.6  2018-06-27 CRAN (R 3.5.1)
 digest       0.6.15  2018-01-28 CRAN (R 3.5.1)
 dplyr      * 0.7.6   2018-06-29 CRAN (R 3.5.1)
 evaluate     0.10.1  2017-06-24 CRAN (R 3.5.1)
 forcats    * 0.3.0   2018-02-19 CRAN (R 3.5.1)
 foreign      0.8-70  2017-11-28 CRAN (R 3.5.1)
 ggplot2    * 3.0.0   2018-07-03 CRAN (R 3.5.1)
 glue         1.2.0   2017-10-29 CRAN (R 3.5.1)
 graphics   * 3.5.1   2018-07-02 local         
 grDevices  * 3.5.1   2018-07-02 local         
 grid         3.5.1   2018-07-02 local         
 gtable       0.2.0   2016-02-26 CRAN (R 3.5.1)
 haven        1.1.2   2018-06-27 CRAN (R 3.5.1)
 hms          0.4.2   2018-03-10 CRAN (R 3.5.1)
 htmltools    0.3.6   2017-04-28 CRAN (R 3.5.1)
 httr         1.3.1   2017-08-20 CRAN (R 3.5.1)
 jsonlite     1.5     2017-06-01 CRAN (R 3.5.1)
 knitr        1.20    2018-02-20 CRAN (R 3.5.1)
 lattice      0.20-35 2017-03-25 CRAN (R 3.5.1)
 lazyeval     0.2.1   2017-10-29 CRAN (R 3.5.1)
 lubridate    1.7.4   2018-04-11 CRAN (R 3.5.1)
 magrittr     1.5     2014-11-22 CRAN (R 3.5.1)
 memoise      1.1.0   2017-04-21 CRAN (R 3.5.1)
 methods    * 3.5.1   2018-07-02 local         
 mnormt       1.5-5   2016-10-15 CRAN (R 3.5.0)
 modelr       0.1.2   2018-05-11 CRAN (R 3.5.1)
 munsell      0.5.0   2018-06-12 CRAN (R 3.5.1)
 nlme         3.1-137 2018-04-07 CRAN (R 3.5.1)
 parallel     3.5.1   2018-07-02 local         
 pillar       1.2.3   2018-05-25 CRAN (R 3.5.1)
 pkgconfig    2.0.1   2017-03-21 CRAN (R 3.5.1)
 plyr         1.8.4   2016-06-08 CRAN (R 3.5.1)
 psych        1.8.4   2018-05-06 CRAN (R 3.5.1)
 purrr      * 0.2.5   2018-05-29 CRAN (R 3.5.1)
 R6           2.2.2   2017-06-17 CRAN (R 3.5.1)
 Rcpp         0.12.17 2018-05-18 CRAN (R 3.5.1)
 readr      * 1.1.1   2017-05-16 CRAN (R 3.5.1)
 readxl       1.1.0   2018-04-20 CRAN (R 3.5.1)
 reshape2     1.4.3   2017-12-11 CRAN (R 3.5.1)
 rlang        0.2.1   2018-05-30 CRAN (R 3.5.1)
 rmarkdown    1.10    2018-06-11 CRAN (R 3.5.1)
 rprojroot    1.3-2   2018-01-03 CRAN (R 3.5.1)
 rsconnect    0.8.8   2018-03-09 CRAN (R 3.5.1)
 rstudioapi   0.7     2017-09-07 CRAN (R 3.5.1)
 rvest        0.3.2   2016-06-17 CRAN (R 3.5.1)
 scales       0.5.0   2017-08-24 CRAN (R 3.5.1)
 stats      * 3.5.1   2018-07-02 local         
 stringi      1.1.7   2018-03-12 CRAN (R 3.5.0)
 stringr    * 1.3.1   2018-05-10 CRAN (R 3.5.1)
 tibble     * 1.4.2   2018-01-22 CRAN (R 3.5.1)
 tidyr      * 0.8.1   2018-05-18 CRAN (R 3.5.1)
 tidyselect   0.2.4   2018-02-26 CRAN (R 3.5.1)
 tidyverse  * 1.2.1   2017-11-14 CRAN (R 3.5.1)
 tools        3.5.1   2018-07-02 local         
 utf8         1.1.4   2018-05-24 CRAN (R 3.5.1)
 utils      * 3.5.1   2018-07-02 local         
 withr        2.1.2   2018-03-15 CRAN (R 3.5.1)
 xml2         1.2.0   2018-01-24 CRAN (R 3.5.1)
 yaml         2.1.19  2018-05-01 CRAN (R 3.5.1)
1 Like

Replying again, b/c I under interpreted your last message.... The problem was with a previous build of the IDE. I just upgraded to RStudio 1.1.456 - Windows Vista/7/8/10, up from RStudio (1.1.423) . Everything is working fine now -- I thought I was on the latest version. Apparently not.

Thanks for the reply. It helped a great deal.

1 Like