The file PACKAGENAME.m2 should be on the load path and should contain a package named PACKAGENAME.
For example, to load the sample package FirstPackage:
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 : needsPackage "FirstPackage" --opened database: /home/dan/src/M2/trunk/BUILD/dan/builds/ubuntu32/StagingArea/i686-Linux-Ubuntu-8.10/lib/Macaulay2/FirstPackage/cache/rawdocumentation-dcba-4.db --beginDocumentation: using documentation database, skipping the rest of ../../../../../../Macaulay2/packages/FirstPackage.m2 --package "FirstPackage" loaded --loaded ../../../../../../Macaulay2/packages/FirstPackage.m2 o2 = FirstPackage o2 : Package |
i3 : needsPackage "FirstPackage" o3 = FirstPackage o3 : Package |