How can I tell which packages I am not using in my R script?

后端 未结 4 1334
无人及你
无人及你 2021-01-04 18:18

As my code evolves from version to version, I\'m aware that there are some packages for which I\'ve found better/more appropriate packages for the task at hand or whose purp

4条回答
  •  天命终不由人
    2021-01-04 19:14

    My approach always is to close my R script or IDE (i.e. RStudio) and then start it again. After this I run my function without loading any dependecies/packages beforehand. This should result in various warning and error messages telling you which functions couldn't be found and executed. This again will give you hints on what packages are necessary to load beforehand and which one you can leave out.

提交回复
热议问题