I am trying figure out if it is possible to use package name not explicitly as eg DataFrames
etc or as a String variable with a name of this module with using
. My test code is:
dependencies=["CSV", "DataFrames", "Plots"]
for pkg in dependencies
if !haskey(installed_packages, pkg)
Pkg.add(pkg)
end
print(pkg)
using .pkg
end
It breaks on using .pkg
(also tryid without a dot, with error
TypeError: in using, expected Symbol, got a value of type Core.SlotNumber