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

readPackage -- read the package preamble

Synopsis

Description

The file PackageName.m2 should be on the load path and should contain a package named PackageName. This function is mostly used for getting information about a package quickly and without processing the entire package.

i1 : opts = readPackage "NormalToricVarieties"

o1 = OptionTable{Authors => {{Name => Gregory G. Smith, Email => [email protected], HomePage => http://www.mast.queensu.ca/~ggsmith}}}
                 AuxiliaryFiles => true
                 CacheExampleOutput => null
                 Certification => null
                 Configuration => {}
                 Date => 31 May 2020
                 DebuggingMode => false
                 Headline => routines for working with normal toric varieties and related objects
                 HomePage => null
                 InfoDirSection => Macaulay2 and its packages
                 Keywords => {Toric Geometry}
                 OptionalComponentsPresent => null
                 PackageExports => {Polyhedra, Schubert2, Varieties, Truncations}
                 PackageImports => {FourierMotzkin, Normaliz, LLLBases}
                 Reload => false
                 UseCachedExampleOutput => null
                 Version => 1.9

o1 : OptionTable
i2 : "1.9" <= opts.Version

o2 = true

See also

Ways to use readPackage :

For the programmer

The object readPackage is a method function with options.