2018-07-18 18:57:08 +00:00
|
|
|
# Mathematica Front-End Installation Instructions #
|
|
|
|
|
|
2018-07-30 18:40:46 +00:00
|
|
|
If you'd like to be able to use this package inside of any notebook,
|
|
|
|
|
regardless of the notebook's location on your filesystem, then you can use
|
|
|
|
|
Mathematica's front end to install this package. Use the following steps:
|
2018-07-18 18:57:08 +00:00
|
|
|
|
|
|
|
|
1. Click `File -> Install...`
|
|
|
|
|
2. Select `Package` for the _Type of Item to Install_
|
|
|
|
|
3. Chose `From File...` for the _Source_
|
2018-07-30 18:40:46 +00:00
|
|
|
4. Navigate to the `ModernRobotics.m` and select it as the source for the
|
|
|
|
|
package
|
2018-07-23 08:17:51 +00:00
|
|
|
5. The _Install Name_ should default to `ModernRobotics`; if it doesn't then
|
|
|
|
|
fill in the install name to be `ModernRobotics`.
|
2018-07-18 18:57:08 +00:00
|
|
|
6. Choose whether you want the package installed for a single user or for all
|
|
|
|
|
users (may require administrative privileges)
|
|
|
|
|
7. Click `OK`
|
|
|
|
|
|
|
|
|
|
Now from any notebook you should be able to load the library by running:
|
|
|
|
|
|
|
|
|
|
```
|
2018-07-23 08:17:51 +00:00
|
|
|
<<ModernRobotics`
|
2018-07-18 18:57:08 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
If you'd like to uninstall the package, you can just delete the file
|
2018-07-23 08:17:51 +00:00
|
|
|
`ModernRobotics.wl` or `ModernRobotics.m` in the following directory.
|
2018-07-18 18:57:08 +00:00
|
|
|
|
|
|
|
|
```sh
|
2018-07-23 08:17:51 +00:00
|
|
|
$MATHPATH/Applications/ModernRobotics/
|
2018-07-18 18:57:08 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The value of `$MATHPATH` will depend on your system. You can determine it by
|
|
|
|
|
looking at the `$Path` variable inside Mathematica. Here are some paths for
|
|
|
|
|
common operating systems:
|
|
|
|
|
|
|
|
|
|
+ OS-X: `~/Library/Mathematica/`
|
|
|
|
|
+ Linux (Debian): `~/.Mathematica/`
|
|
|
|
|
+ Windows: `%APPDATA%\Mathematica\`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Manual Installation Instructions ##
|
|
|
|
|
|
|
|
|
|
If you have any troubles with the front-end installation described above, you
|
2018-07-30 18:40:46 +00:00
|
|
|
can try manually installing the package by copying the `ModernRobotics.m`
|
|
|
|
|
file into the same directory mentioned for uninstalling.
|
2018-07-18 18:57:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Using the Package Locally #
|
|
|
|
|
|
|
|
|
|
If you don't want to install the package at all, it is possible to place it
|
|
|
|
|
anywhere on your filesystem and then load it into a notebook using
|
|
|
|
|
|
|
|
|
|
```
|
2018-07-23 08:17:51 +00:00
|
|
|
SetDirectory["<PATH-TO-DIRECTORY-CONTAINING-ModernRobotics.m>"]
|
|
|
|
|
<<ModernRobotics`
|
2018-07-18 18:57:08 +00:00
|
|
|
```
|
|
|
|
|
|
2018-07-30 18:40:46 +00:00
|
|
|
If the notebook and the package are located in the same directory you could
|
|
|
|
|
use
|
2018-07-18 18:57:08 +00:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
SetDirectory[NotebookDirectory[]]
|
2018-07-23 08:17:51 +00:00
|
|
|
<<ModernRobotics`
|
2018-07-18 18:57:08 +00:00
|
|
|
```
|