1

I have an R file, but it has packages which are not installed on my R installation. Is there a utility which determines these dependencies from the R file and installs all of them? I don't want to manually install them one by one.

piedpiper
  • 1,222
  • 3
  • 14
  • 27

1 Answers1

1

The pacman package offers an efficient way to install / load packages in a single line. You can refer to this article. I'm not aware of a way that installs packages completely automatically, as there might be namespace overlap between functions, etc...

tlhenvironment
  • 319
  • 2
  • 10