简体   繁体   中英

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. 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.

Just find out that it is not the problem of rmongodb. It is only a display issue with Rstudio. I actually got the full content, but Rstudio only displayed the first 1000 chars of that field (in string format).

I solved it by re-ajust the display options of Rstudio, thanks to this answer .

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