November 2017
Beginner
316 pages
6h 40m
English
After we are done choosing the right name for our package, we move on to actually creating one. Generating a package is one of the simplest things which can be done if compared to other programming languages.
In Julia version 0.6, to generate a package inside the REPL, you will have to install an additional package named PkgDev which can be easily installed and used as given in the following command.
julia> Pkg.add("PkgDev")
julia> using PkgDev
For the sake of testing, I am going to give my package the name TestPackage. Let's begin generating the package now:
julia> PkgDev.generate("TestPackage","MIT") INFO: Initializing TestPackage repo: /Users/rlakhanpal/.julia/v0.6/TestPackage INFO: Generating LICENSE.md INFO: Generating ...Read now
Unlock full access