Automatically finding the path of current R project in R Studio

前端 未结 1 1237
忘掉有多难
忘掉有多难 2021-01-13 10:43

Say I have an R project opened at the following directory /home/user/workarea/project1. Now I have a nested directory structure underneath and I am writing a fu

1条回答
  •  有刺的猬
    2021-01-13 11:15

    It sounds like the rprojroot package will provide what you're looking for -- in particular, the find_rstudio_root_file() function should provide what you need.

    0 讨论(0)
提交回复
热议问题