julialangHow to add a package in JuliaLang?
Adding a package in JuliaLang is easy and straightforward. You can use the Pkg.add() command to add a package. For example, to add the DataFrames package, you can use the following code:
julia> Pkg.add("DataFrames")
The output of the above code will be:
INFO: Cloning cache of DataFrames from git://github.com/JuliaStats/DataFrames.jl.git
INFO: Installing DataFrames v0.9.0
INFO: Package database updated
Code explanation
Pkg.add(): This is the command used to add a package.DataFrames: This is the name of the package to be added.
Helpful links
More of Julialang
- How to test code in JuliaLang?
- How to use regular expressions in JuliaLang?
- How to use tuples in JuliaLang?
- How to round numbers in JuliaLang?
- How to use try catch in JuliaLang?
- How to use channels in JuliaLang?
- How to calculate the mean in JuliaLang?
- How to add a legend to a plot in JuliaLang?
- How to use interpolation in JuliaLang?
- How to install JuliaLang on Linux?
See more codes...