Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mossr/addpackage.jl
Julia macro to add missing packages when calling `using Package`
https://github.com/mossr/addpackage.jl
Last synced: about 1 month ago
JSON representation
Julia macro to add missing packages when calling `using Package`
- Host: GitHub
- URL: https://github.com/mossr/addpackage.jl
- Owner: mossr
- Created: 2020-09-21T01:50:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T07:44:00.000Z (about 4 years ago)
- Last Synced: 2024-10-08T22:01:21.107Z (about 1 month ago)
- Language: Julia
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AddPackage.jl
[![Build Status](https://travis-ci.com/mossr/AddPackage.jl.svg?branch=master)](https://travis-ci.com/mossr/AddPackage.jl) [![codecov](https://codecov.io/github/mossr/AddPackage.jl/coverage.svg?branch=master)](https://codecov.io/gh/mossr/AddPackage.jl)
An `@add` macro to automatically add a missing package when calling `using Package` in Julia.
Example:
```julia
@add using Distributions
```This will run `using Distributions` if it's already installed, otherwise will install the package, then run `using Distributions`.
## Installation:
```julia
] add AddPackage
```## Usage:
```julia
using AddPackage
@add using Distributions
@add using Random, Parameters, LinearAlgebra
```---
Written by [Robert Moss](https://github.com/mossr).