Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » packages
next | previous | forward | backward | up | index | toc

packages -- Macaulay2 packages

A package is a body of Macaulay2 source code devoted to a particular topic. Many packages are distributed with Macaulay2, and others are available from the author's homepage.

To load a package, say FirstPackage, use either of the following methods.

i1 : loadPackage "FirstPackage"

o1 = FirstPackage

o1 : Package
i2 : needsPackage "FirstPackage"

o2 = FirstPackage

o2 : Package

For technical information about packages, see Package.

Macaulay2 searches for the file FirstPackage.m2 on your search path. The packages provided with Macaulay2 are on your search path, as is your current working directory.

Using existing packages

Creating a new package

Writing documentation for a package

Debugging a package

Documentation for the packages provided with Macaulay2 is already installed. To install documentation for another package, use installPackage.

installPackage FirstPackage

You may see what packages have been loaded with the variable loadedPackages.

See also

Menu

Accessing packages

Interacting with packages

Miscellaneous nodes


The source of this document is in Macaulay2Doc/ov_packages.m2:244:0.