next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc > The Macaulay2 language > packages > loadPackage

loadPackage -- load a package



The file PACKAGENAME.m2 should be on the load path and should contain a package named PACKAGENAME.

If the variable notify is set to true, then an informational message is displayed after the file is loaded.

i1 : notify = true

o1 = true
i2 : loadPackage "FirstPackage"
--opening database /usr/lib/Macaulay2/FirstPackage/cache/rawdocumentation-dcba-8.db
--beginDocumentation: using documentation database, skipping the rest of /usr/share/Macaulay2/FirstPackage.m2
--package "FirstPackage" loaded
--loaded /usr/share/Macaulay2/FirstPackage.m2

o2 = FirstPackage

o2 : Package

See also

Ways to use loadPackage :