Suppose one is getting started with Julia, but has made a series of scripts to pass on to someone else, that has just installed julia for the first time on its machine.
Without having to specify which Packages are to be used to make your scripts work, and without say to him nothing on packages he should install to be able to run the scripts … because he is more beginner than you, for example … can you pass to him a “needs.jl” script that will import all the packages you need?
Is such an approach correct, if you say to your friend “write in command line julia.exe needs.jl” to be sure he will have all package installed in his machine?
For example a script of this type, I mean:
println("\n\nThis script will add the necessary packages\nfor the operations, please wait ..\n\n") import Pkg Pkg.add("NameOfFirstPackageOneNeed") Pkg.add("NameOfSecondPackageOneNeed") ... Pkg.add("NameOfLastPackageOneNeed")
Thanks for replies.