package present ?-exact? package ?version?
"This command is equivalent to package require except that it does not try and load the package if it is not already loaded." Its canonical description appears in the man page [L1 ].
etdxc Sorry for being so literal, but I presume this means that it tries to load the package only when it is not already loaded.
CL agrees that the man page is unsatisfying. I submit this alternative:
I hope dgp especially will review my formulation.
LV Here's an example:
$ tclsh % package names Tcl % package present Tk package Tk is not present % package require Tk 8.5 % package present Tk 8.5
See also: