R

Asked • 10/11/19

Load multiple packages at once?

How can I load a bunch of packages at once with out retyping the require command over and over? I've tried three approaches all of which crash and burn.Basically, I want to supply a vector of package names to a function that will load them. x<-c("plyr", "psych", "tm") require(x) lapply(x, require) do.call("require", x)

1 Expert Answer

By:

Eric L. answered • 10/12/19

Tutor
New to Wyzant

Experienced programmer and familiar with most branches of math

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.