简体   繁体   中英

Controlling cell width in RStudio Environment tab data viewer

I am using the latest version of RStudio on Mac (1.2.1070). When viewing a data frame in the Environment tab, the cell widths are very wide, seemingly as wide as the data contained. This makes it hard to use with large text blocks. Is there a way to control the default width of cells or to set a max default width, other than by manually dragging using the mouse?

I think this behaviour is recent, and only in the latest release of RStudio .

In RStudio\\resources\\grid folder, locate dtstyles.css file, look for .textCell there should be several. Find the one contains max-width: 300px; and change the number. See if it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM