Morgan Ball
Morgan Ball

Reputation: 790

Packages loaded into memory

I'm want to loop through all packages I have currently loaded in memory i.e. those I have "libraried", and export them to parallel clusters using

clusterEvalQ(cl, library(*pkagename*))

Is there a way of detecting which packages are loaded into memory and creating a list of them?

Upvotes: 1

Views: 337

Answers (1)

ottlngr
ottlngr

Reputation: 1247

Find loaded packages:

(.packages())

Store them in a list:

l <- list(.packages())

Upvotes: 2

Related Questions