IsPackageInstalled - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Package Tools : IsPackageInstalled

PackageTools

  

IsPackageInstalled

  

check if a workbook-based package is installed

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

IsPackageInstalled( package_id )

IsPackageInstalled( package_id, output )

Parameters

package_id

-

string

output

-

: (optional) title, version, id, path, Record, or JSON

Description

• 

The IsPackageInstalled command returns false if the installation bundle with the given package_id is not installed, otherwise it returns information about the installed package as specified by the output option.  

• 

The first argument in the calling sequence can be a string representing the "title" or "id" number of the given package.  A match is found by iterating through the output of PackageTools:-ListInstalledPackages.

• 

By default output = version; which, when the package is found will return a string indicating the version of the given package. The title, id and path output variants will return a string with the specified property. Using output=Record will give you a Record containing all of these properties. Similarly output=JSON will give a JSON formatted string containing all of the properties.

• 

This command is intended to work with the notion of "package" pertaining to installation-bundles.  To find traditional maple-based package modules that are installed, try using with or assigned.  To find the source library that contains a package-module, use the LibraryTools:-FindLibrary command.

• 

The primary use of this function is for behind-the-scenes work interfacing with the GUI to assist with installation and package management.

Examples

Compatibility

• 

The PackageTools[IsPackageInstalled] command was introduced in Maple 2017.

• 

For more information on Maple 2017 changes, see Updates in Maple 2017.

See Also

Creating a New Package Workbook

PackageTools

PackageTools,ListInstalledPackages

 


Download Help Document