Questions on Mathematica packages, which are self-contained bundles of Mathematica code that add new functions and other functionality.
18
votes
3answers
448 views
How to load a package without naming conflicts?
This question applies to any package, but I encountered this problem while working with graphs.
There are symbols in the Combinatorica package (such as ...
7
votes
2answers
354 views
Automatically load packages at startup
I'm a physics student and I try to simplify my day with Mathematica. Every time I use Mathematica I need Div[], Grad[], ...
19
votes
3answers
2k views
Differential geometry add-ons for Mathematica
I need a differential geometry tool for Mathematica. Is there any add-on?
Unfortunately, Mathematica does not include such functionality or I can not find it.
16
votes
1answer
360 views
What is the proper method to load a Mathematica package inside a DynamicModule
I have a DynamicModule that requires loading of Mathematica packages. The usual methods do not seem to apply (...
29
votes
3answers
831 views
How to distribute proprietary Mathematica code
If I want to make package-code completely unreadable, in a way that the end-user can only call my functions, but has no way to re-engineer my definitions, how would I do that?
I know I can use ...
29
votes
3answers
867 views
Custom package development: Basic steps
Every once in a while, I write a generic function that I use quite often for months to come. However, package development in Mathematica is not very well documented from what I can tell, and I was not ...
19
votes
2answers
447 views
What are recommended guidelines for developing packages?
This might be of general interest – I have different questions regarding naming conventions, contexts, subcontexts, shadowing, etc., but I do feel that they are closely related, thus I don't really ...
20
votes
4answers
457 views
Defining functions in stylesheets
Is there a way to define functions in a stylesheet? So far I have managed to write my stylesheets without the need to use my own custom functions or definitions. For instance, maybe I have some color ...
6
votes
1answer
271 views
How to work with Application Project files in Wolfram Workbench?
I have figured out that in a basic project I simply have to call the main package (m file) from the notebook using
<<nameofmfile`
and then the notebook ...
6
votes
1answer
679 views
How to execute a function in the package from java?
I use Wolfram Workbench 2.0.
I can get a KernelLink object and evaluate some simple expressions like "2+2". But I don't know how to export a package and execute ...
16
votes
2answers
321 views
Automated testing for compatibility with older Mathematica versions
I have several packages which I actively develop and maintain. I try to stay up to date with new releases of Mathematica and usually update within a couple of months of a new version coming out. As a ...
18
votes
2answers
579 views
What is a “Paclet”?
I often see references to "paclets", for example the PacletManager` context, the PacletInfo.m file in some packages and next to ...
17
votes
2answers
261 views
What's the difference between these two ways of specifying dependent packages?
What's the difference between these two ways of specifying dependent packages?
Method 1:
BeginPackage["foo`bar`", {"xxx`", "yyy`"}]
Method 2:
...
13
votes
1answer
461 views
Installing CRAN Packages
When I install RLink:
Needs["RLink`"]
InstallR[]
then evaluate the command
...
12
votes
1answer
240 views
Creating a R DataFrame like construct in Mathematica
I kept getting my data mixed up so I decided to see if I could construct a package adding a R DataFrame like construct to Mathematica. I managed to cobble something together that sort of works, but ...
11
votes
3answers
293 views
How can I return private members of a Mathematica package as the output of package functions without the “PackageName`Private`” prefix?
I have created a Mathematica package that manipulates various types of input physics data into a common form of output data for further analysis. To make this process more efficient and manageable, I ...
10
votes
2answers
118 views
Globally loading packages while using a CellGroup as the default context
I have a notebook I wish to set up where the sections are conceptually related to each other. But, I wish to isolate them from each other programmatically, so that they do not interfere with one ...
9
votes
1answer
130 views
Preserving indentation when creating a new line (when editing in a package)
Background:
This is the third question in a row of questions about how to make editing packages in the front-end much more bearable (the other two are here and here). It seems that the front end is ...
10
votes
2answers
363 views
How to unload automatically loaded packages?
I know that this has been discussed here (How do I clear all user defined symbols?), but my case is somewhat different. How does one unload packages during runtime that were loaded with the start of ...
9
votes
2answers
251 views
Mathematica “prelude”
Is there any way to have the functions from a mathematica file be loaded on startup?
For example, in this excellent answer, Jens helps me out and gives me some functions for creating legends for ...
8
votes
2answers
373 views
Why is JLink loaded every time I start Mathematica?
When I start a Mathematica 8 session (either command line or with the notebook front end), I notice that there are several packages that have already been loaded for me (using ...
10
votes
2answers
420 views
How do I compute sidereal time and JD?
There was once a package that provided a wide range of functions for computing astronomical information. This package now appears to be out of date; but as near as I can tell, many of the useful ...
8
votes
1answer
148 views
user defined functions, how to save them for future use?
I need certain user defined functions over and over. I was wondering how can I define and where and how to save them such that each time I start a notebook, these functions are available and need not ...
7
votes
1answer
755 views
How do I create and use Mathematica packages?
I have created a package following the tutorial in Mathematica 8 virtual book. However this tutorial is quite, let's call it, "short". I have a TestPackage.m file:
...
15
votes
3answers
366 views
Listing the functions defined in a package
Assume that I know a package's (Context?) name that is loaded. Now I want to list the functions defined in this package. How can I do it?
I remember that I found a way once, but I cannot re-find it. ...
15
votes
2answers
275 views
How safe is Encode?
How safe is an encoded package (using locked, etc)?
If I don't specify a personal key, I understand that the encoding key must be somewhere in the Mathematica program itself, and so it is not a ...
13
votes
2answers
988 views
How to install packages?
This is always a problem when I distribute my packages to colleagues working on different platforms. I have my packages installed into a private directory and I autoload some of them when Mathematica ...
11
votes
1answer
183 views
Can Wolfram's Player Pro use proprietary packages?
A few entwined/related questions:
Can Wolfram's Player Pro use proprietary packages?
I have searched Wolfram's site pages on Player Pro and don't see anything that provides a clear answer to this ...
10
votes
2answers
348 views
How to make a parallel auto-generated .m package from Initialization cells?
according to the documentation at ref/InitializationCell,
When you first save a notebook that contains initialization cells, you have the option to make a ...
8
votes
1answer
266 views
How to properly DumpSave & Get Global`s symbols inside packages while not touching Global context?
For efficiency reasons I prefer to use DumpSave instead of Save.
For ease of access I prefer to save symbols in ...
11
votes
4answers
316 views
Strategies for avoiding and handling shadowing
When dealing with namespaces in Mathematica (BeginPackage, $ContextPath ...) one is unavoidably confronted with the problem of ...
10
votes
1answer
330 views
Using a different R version with RLink
I wish to use a different version of R than what is provided by Mathematica 9. For example, I want to use the Macports version of R, where R_HOME is ...
9
votes
1answer
306 views
FiniteFields package is very slow. Any fast substitute for Mathematica?
I want to compute the inverse of matrix, say with dimensions $100 \times 100$, defined over a large finite field extension such as $GF(2^{120})$. I am using the package FiniteFields, but Mathematica's ...
8
votes
2answers
125 views
Problem with PlayerPro recognizing a proprietary package
This question follows on from my earlier question Can Wolfram's Player Pro Use Proprietary Packages.
That question appeared to have established that, yes, PlayerPro can use proprietary packages.
...
6
votes
3answers
144 views
How to program a F::argx message?
How useful is it to program a user-built function in a package to produce a red warning message F::argx if you give the wrong number of arguments to that function? ...
6
votes
1answer
181 views
How to provide your own example data for a custom package?
A nice feature of the mathematica documentation is the copious use of ExampleData in illustrating functionality. I would like to provide some example data for a ...
4
votes
1answer
523 views
FeynArts not working properly
So I have installed all FeynArts folders (from 3.5 to 3.7) with FeynCalc 8.0.1., and none of it is working properly :\
First I load the path to specific FeynArts package (3.5 for instance), then, by:
...
1
vote
0answers
67 views
How to automatically load package in Player Pro by making backup files of init.m?
I dont know whether I am asking the right question or not but I am curious to know whether we can automatically load the package in ...
1
vote
0answers
125 views
Package autoloading not working in CDF and Player Pro
I have made a package
BeginPackage["top`"]
t[x_]:=MessageDialog["This is top"]
t1[x_]:=MessageDialog["This is top1"]
EndPackage[]
and used the code of this ...
0
votes
1answer
85 views
Images in package Not visible
I want to make a package where some variables are initialized to images. but when i save the package, all images are in the form of ImageData that are very long. ...

