New Pkg: how to check if a package is installed?

I’d suggest

using Pkg
if in("OhMyREPL",keys(Pkg.installed()))
    @eval using OhMyREPL
else
    @warn("OhMyREPL not installed")
end

4 Likes