check if a workbook-based package is installed
IsPackageInstalled( package_id )
IsPackageInstalled( package_id, output )
: (optional) title, version, id, path, Record, or JSON
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.
The PackageTools[IsPackageInstalled] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
Creating a New Package Workbook
Download Help Document
What kind of issue would you like to report? (Optional)