-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackages.jl
35 lines (26 loc) · 983 Bytes
/
packages.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
###############################
### create report quasi-package
using Pkg
# generate and activate the package for the current directory
Pkg.activate(".")
# if this were to be applied for a different directory, use these lines
# Pkg.generate("path/to/reportpackage")
# Pkg.activate("path/to/reportpackage")
# set of packages you want to install
dependencies = [
"IJulia",
"Genie",
"OnlineStats"
]
# add these packages to the report's quasi-package
# after this step there should be a Project.toml in "path/to/reportpackage" with the packages above
# and a Manifest.toml in "path/to/reportpackage" with those packages' dependencies
Pkg.add(dependencies)
###############################
### re-use of packages
# The following lines are for folks re-using this package/ replicating the project
using Pkg
# activate the report's quasi-package
Pkg.activate(".")
# instantiate: this will install any new dependencies in Manifest.toml and Project.toml
Pkg.instantiate()