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 sort in JuliaLang?
- Creating "Hello World" program in JuliaLang
- How to use tuples in JuliaLang?
- How to append to an array in JuliaLang?
- How to animate in JuliaLang?
- How to get JuliaLang version?
- How to test code in JuliaLang?
- How to work with GPUs in JuliaLang?
- How to create a for loop in JuliaLang?
- How to use try catch in JuliaLang?
See more codes...