如何从R studio中的data.tree / console复制粘贴超过1000行

我有一个data.tree环境对象,我想移动到Excel。 目前,这个对象已经超过1000行,因此在Rstudio中打印时,我无法将其全部复制并粘贴回excel。 将环境写入另一个文件也失败了。 我进一步尝试在代码和显示下使用全局选项中的选项增加超过1000的行,这并没有增加总行数。 有人有主意吗?

library(readr) library(tidyverse) library(data.table) library(stringr) library(data.tree) categories <- read_csv("W:/categories.csv") df <- categories df <- df[-c(1)] options(max.print=9000) str_replace_all(df, "[^[:alnum:]]", "") df$pathString <- paste(df$Top, df$Manager, df$Employee, df$`sub-employee`, sep="/") tree <- as.Node(df[,]) print(tree, limit=6000)