From the REPL, I installed the AstroNbodySim package by ]add AstroNbodySim
. Next, inside my usual ~/Documents/julia
directory for projects, I used ] generate Nbody
and then ] activate Nbody
.
I want to run some of the examples in the package’s Examples directory. But the installation I did, following the docs, did not seem to add the files from subdirectoires Benchmark, docs, examples, or test at https://github.com/JuliaAstroSim/AstroNbodySim.jl. So I downloaded the whole zip from there, unzipped, and moved the Benchmark, docs, examples, and test directories into ~/Documents/julia/Nbody
.
Still, if I execute, say include("examples/07-solarsystem/07-solarsystem.jl")
, I get `LoadError: ArgumentError: Package AstroPlot not found in current path:
- Run
import Pkg; Pkg.add("AstroPlot")
to install the AstroPlot package.`
Please patiently explain to me what I am doing wrong.
I am still utterly flummoxed by Julia’s package and environment conceptual framework!