Re: Re: Re: finding package in ExtraPackages`Enhancements`
- To: mathgroup at smc.vnet.net
- Subject: [mg54176] Re: [mg54127] Re: [mg54096] Re: [mg54065] finding package in ExtraPackages`Enhancements`
- From: DrBob <drbob at bigfoot.com>
- Date: Sat, 12 Feb 2005 01:58:12 -0500 (EST)
- References: <200502100747.CAA16644@smc.vnet.net> <200502110833.DAA09193@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
EVERYTHING in $UserBaseDirectory\Applications is an add-on, so it seems redundant to have one directory called AddOns, let alone two. "ExtraPackages" and "Enhancements" likewise appear unnecessary, uninformative, and redundant. Is there a user package that ISN'T an added-on, extra, enhancement? I don't think so. Therefore, I suggest putting the package file directly in $UserBaseDirectory\Applications, edit it to remove mention of "Enhancements" from the BeginPackage statement, and load it with <<RootSearch` or Needs["RootSearch`"]. Otherwise, put it in $UserBaseDirectory\Applications\Enhancements (AS IS), and load it with <<Enhancements`RootSearch` or Needs["Enhancements`RootSearch`"]. Bobby On Fri, 11 Feb 2005 03:33:42 -0500 (EST), Murray Eisenberg <murray at math.umass.edu> wrote: > I'm still at a loss here... What the installation directions for Ersek's > RootSearch.m actually say is to create, if it's not already present, an > Enhancements subdirectory of > > ToFileName[{$TopDirectory, "AddOns", "ExtraPackages"}] > > and to put RootSearch.m there. > > But I want to separate all such add-ons from the Mathematica > $TopDirectory tree, so they can readily be preserved during updates from > one version of Mathematica to another. > > So I created a new tree under my $UserBaseDirectory, with top levels: > > FileNames[$UserBaseDirectory <> "\\*"] > {D:\Math\AddOns\AddOns, D:\Math\AddOns\Applications, > D:\Math\AddOns\Autoload, \ > D:\Math\AddOns\Documentation, D:\Math\AddOns\FrontEnd, > D:\Math\AddOns\Kernel, \ > D:\Math\AddOns\Licensing, D:\Math\AddOns\SystemFiles, D:\Math\AddOns\User} > > But Mathematica does not seem to search within D:\Math\AddOns\AddOns, so > it never finds > > D:\Math\AddOns\AddOns\ExtraPackages\Enhancements > > in which I placed RootSearch.m. > > Previously, I had tried, instead, to put that ExtraPackages tree at the > top level of $UserBaseDirectory, so that: > > FileNames[$UserBaseDirectory <> "\\*"] > {D:\Math\AddOns\Applications, D:\Math\AddOns\Autoload, \ > D:\Math\AddOns\Documentation, D:\Math\AddOns\ExtraPackages, \ > D:\Math\AddOns\FrontEnd, D:\Math\AddOns\Kernel, D:\Math\AddOns\Licensing, \ > D:\Math\AddOns\SystemFiles, D:\Math\AddOns\User} > > Notice that the ExtraPackages directory was in that search path, but > still Mathematica does not find RootSearch in response to command: > > << Enhancements`RootSearch` > > The trouble seems to be a lack of parallel in the way Mathematica treats > > ToFileName[{$TopDirectory, "AddOns", "ExtraPackages"}] > > and > > ToFileName[{$UserBaseDirectory, "AddOns", "ExtraPackages"}] > > in that the former IS on the search path but the latter is not. > > > > David Annetts wrote: >> Hi Murray, >> >> >>> Various packages suggest they should be installed in >>> subdirectories of ExtraPackages. For example, Ersek's >>> RootSearch.m, is to be installed in subdirectory Enhancements >>> of ExtraPackages. >>> I keep all such 3rd party add-ons in a directory tree >>> separate from the Mathematica install directory tree. >>> Namely, in a directory to which $UserBaseDirectory points. >>> Thus, RootSearch.m is in directory: >>> >>> ToFileName[{$UserBaseDirectory, "ExtraPackages", "Enhancements"}] >>> >>> Yet still a command such as >>> >>> <<Enhancements`RootSearch` >>> >>> or >>> >>> Needs["Enhancements`RootSearch`"] >>> >>> fails to find its target. >>> >>> How can I make this work? >> >> >> As far as I can tell, you have an incorrect path. >> >> My $UserBaseDirectory is >> In[6]:= >> FileNames[$UserBaseDirectory<>"\\*"] >> >> Out[6]= >> {C:\Documents and Settings\dwa\Application \ >> Data\Mathematica\Applications,C:\Documents and Settings\dwa\Application \ >> Data\Mathematica\Autoload,C:\Documents and Settings\dwa\Application \ >> Data\Mathematica\FrontEnd,C:\Documents and Settings\dwa\Application \ >> Data\Mathematica\Kernel,C:\Documents and Settings\dwa\Application \ >> Data\Mathematica\Licensing,C:\Documents and Settings\dwa\Application \ >> Data\Mathematica\SystemFiles} >> >> Of these, only $UserBaseDirectory<>"\\Applications" is has any packages. >> >> You need to put RootSearch in either >> $UserBaseDirectory<>"\\AddOns\\Enhancements" or >> $UserBaseDirectory<>"\\Applications\\Enhancements". >> >> The introduction to the package says as much. >> >> Regards, >> >> Dave >> >> >> > -- DrBob at bigfoot.com www.eclecticdreams.net
- References:
- Re: finding package in ExtraPackages`Enhancements`
- From: "David Annetts" <davidannetts@aapt.net.au>
- Re: Re: finding package in ExtraPackages`Enhancements`
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: finding package in ExtraPackages`Enhancements`