简体   繁体   English

在RStudio环境选项卡数据查看器中控制单元格宽度

[英]Controlling cell width in RStudio Environment tab data viewer

I am using the latest version of RStudio on Mac (1.2.1070). 我正在Mac(1.2.1070)上使用RStudio的最新版本。 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 . 我认为这种行为是最近的,并且仅在RStudio的最新版本中存在。

In RStudio\\resources\\grid folder, locate dtstyles.css file, look for .textCell there should be several. RStudio\\resources\\grid文件夹中,找到dtstyles.css文件,查找.textCell应该有几个。 Find the one contains max-width: 300px; 找到一个包含max-width: 300px; and change the number. 并更改号码。 See if it works. 看看是否可行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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