I’m attempting to create my own module (for the purpose of educating myself) and write tests for it. However, when attempting to call
using myOpti in my test, I keep running into the error
ERROR: LoadError: ArgumentError: Package myOpti not found in current path: Run import Pkg; Pkg.add("myOpti") to install the myOpti package.
In the directory
Users/natemcintosh/Documents/Julia/basicOptimization I have set up a git repository. Within the repository is a
src directory and a
src are two files:
problem_set_1a.jl is where I keep the functions I want to be in the module.
myOpti.jl contains only the code
module myOpti include("problem_set_1a.jl") end # module ps1a
At the moment,
problem_set_1a.jl does not export anything. Is this something I need to do?
I’ve also added the path to the
LOAD_PATH so that
Users/natemcintosh/Documents/Julia/basicOptimization now appears at the end of the
Any suggestions to get this to work?