OS-independent way to select directory interactively in R

后端 未结 5 1490
难免孤独
难免孤独 2021-02-12 11:17

I would like users to be able to select a directory interactively in R. The solution needs to work on different platforms (at least on Linux, Windows and Mac machines that have

5条回答
  •  猫巷女王i
    2021-02-12 11:59

    you can use the choose_dir function from easycsv.
    it works on Windows, Linux and OSX

    easycsv::choose_dir() # can be run without parameters to prompt a folder selection window
    

提交回复
热议问题