getLoadedModules

Syntax

getLoadedModules()

Details

Lists modules that have been loaded in the current session.

Note:

If a module is loaded via the preloadModules parameter, it is automatically loaded in every session and will appear in the result.

Parameters

None.

Returns

A table with the following columns:

  • moduleName: the name of the module.
  • moduleVersion: the version of the module.
  • isFree: Indicates whether the module is free.

For user-defined modules, moduleVersion is empty and isFree is true.

Examples

Assume the alphalens and ops modules have been loaded using the use statement:

getLoadedModules()

Returns a table like the following:

moduleName moduleVersion isFree
alphalens 1.0.0 true
ops 1.0.0 true

Related functions

loadModule