cutebunny
cutebunny

Reputation: 789

how to display a folder in R

I tried to display a folder using R script. I know commands like file.choose() and file.show() but I would like to run an R script to display the folder (a real folder, not the picture nor a screenshot of it). After display the folder, the script is done. I'd like to be able to choose to open any file in the folder but won't import anything into R.

file.show() will display a exactly file but I would like to display a folder. Maybe I can say what I am looking for is folder.show() or dictionary.show()?? file.choose() will import that file to R but I do not want to import anything into R Any ideas?

Upvotes: 0

Views: 199

Answers (1)

Batanichek
Batanichek

Reputation: 7871

Try ( if OS=windows)

shell("explorer C:\\Users\\xxx\\yy", intern=TRUE)

Upvotes: 2

Related Questions