简体   繁体   English

避免在R中使用mongo.find.all()和rmongodb进行截断

[英]Avoid truncation using mongo.find.all() with rmongodb in R

I want to use mongo.find.all() to get all the records in one collection. 我想使用mongo.find.all()来获取一个集合中的所有记录。 However, I find certain fields in the results are truncated. 但是,我发现结果中的某些字段被截断了。 Something like the following, 类似以下内容

.....
$onefiled
[1] xxxxxxxx... <truncated>
......

I wonder how I can avoid this issue and get the full content of that field? 我想知道如何避免这个问题并获得该领域的全部内容? I couldn't find a parameter in mongo.find.all() to control this. 我在mongo.find.all()中找不到参数来控制它。

Just find out that it is not the problem of rmongodb. 只是发现这不是rmongodb的问题。 It is only a display issue with Rstudio. 这只是Rstudio的显示问题。 I actually got the full content, but Rstudio only displayed the first 1000 chars of that field (in string format). 我实际上得到了全部内容,但是Rstudio仅显示该字段的前1000个字符(以字符串格式)。

I solved it by re-ajust the display options of Rstudio, thanks to this answer . 由于这个答案 ,我通过重新调整Rstudio的显示选项解决了它。

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

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