An @add
macro to automatically add a missing package when calling using Package
in Julia.
Example:
@add using Distributions
This will run using Distributions
if it's already installed, otherwise will install the package, then run using Distributions
.
] add AddPackage
using AddPackage
@add using Distributions
@add using Random, Parameters, LinearAlgebra
Written by Robert Moss.