Running the examples
Each example is a function in the cljds.ch1.examples
namespace that can be run in two ways—either from the REPL or on the command line with Leiningen. If you'd like to run the examples in the REPL, you can execute:
lein repl
on the command line. By default, the REPL will open in the examples
namespace. Alternatively, to run a specific numbered example, you can execute:
lein run –-example 1.1
or pass the single-letter equivalent:
lein run –e 1.1
We only assume basic command-line familiarity throughout this book. The ability to run Leiningen and shell scripts is all that's required.
Tip
If you become stuck at any point, refer to the book's wiki at http://wiki.clojuredatascience.com. The wiki will provide troubleshooting tips for known issues, including advice for running examples on a variety of platforms.
In fact, shell scripts are only used for fetching data from remote locations automatically. The book's wiki will also provide alternative instructions for those not wishing or unable to execute the shell scripts.