RStudio在文件选项卡显示窗口中显示目录内容

时间:2020-07-04 18:43:48

标签: r file rstudio display

是否可以使用功能/代码显示文件目录?我发现自己单击了文件结构来查看目录。我想使用这样的东西:

my_search_finding <- grep('search-pattern', list.files('~/some/long/directory/tree'))

new_function_to_view_files(my_search_finding) 

然后在该查看器显示中打开目录,我可以使用鼠标进行浏览。

enter image description here

谢谢

1 个答案:

答案 0 :(得分:0)

在Windows下,您可以使用Printer->ActivePrinter->SelectDPI(1200, 1200); // DestRect = TRectF(0, 0, Printer->PageWidth, Printer->PageHeight); DestRect = TRectF(0, 0, 800, 800);

choose.files

通过path <- '~/some/long/directory/tree' selected.files <- choose.files(default=paste0(path, "/*.*")) 参数,您可以使用完全限定的文件掩码在特定目录中显示文件,请参见documentation