Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Português

Change language to:
English - Français - 日本語 -

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Manual Scilab >> Atoms > atomsIsInstalled

atomsIsInstalled

Determines whether the module is installed. Returns true if the module is installed, false otherwise.

Calling Sequence

res = atomsIsInstalled(modules[,section])

Arguments

modules

mx1, mx2 Matrix of strings:

1st Col. Technical name Mandatory
2nd Col. Version Optionnal If this field is empty or is not present, module's version is ignored.
3rd Col. Section Optionnal If this field is empty or is not present, module's section is ignored.
section

This argument controls the list of searched modules.

section is a single-string and its value should be :

  • "all": atomsIsInstalled() searchs external modules installed in both "user" and "allusers" sections.

  • "allusers": atomsIsInstalled() searchs external modules installed in the "allusers" section.

  • "user": atomsIsInstalled() searchs external modules installed in the "user" section.

The default value is "all".

res

Description

Examples

atomsSetConfig("Verbose","True");
atomsRepositoryAdd("http://scene1.test.atoms.scilab.org");

// Install the needed module for the purpose of the example
atomsInstall("toolbox_5","user");

// simplest way
atomsIsInstalled("toolbox_5");

// Check several modules ...
atomsIsInstalled(["toolbox_5" "toolbox_4"])

// ... with a specific version
atomsIsInstalled(["toolbox_5" "1.0" ; "toolbox_4" "1.0" ; "toolbox_5" "1.1"])

// ... installed in a specific section
atomsIsInstalled(["toolbox_5" "1.0" ; "toolbox_4" "1.0" ; "toolbox_5" "1.1"],"user")
atomsIsInstalled(["toolbox_5" "1.0" ; "toolbox_4" "1.0" ; "toolbox_5" "1.1"],"allusers")

// Some cleaning ...
atomsRepositoryDel("http://scene2.test.atoms.scilab.org");
atomsRemove("toolbox_2");

Authors

  • Pierre MARECHAL - DIGITEO
<< atomsInstall Atoms atomsIsLoaded >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:24:43 CET 2011