0.7 deprecated warning does not go away

julia> mean(A)
WARNING: Base.mean is deprecated: it has been moved to the standard library package Statistics.
Add using Statistics to your imports.
in module Main
5.5

julia> using Statistics

julia> mean(A)
WARNING: Base.mean is deprecated: it has been moved to the standard library package Statistics.
Add using Statistics to your imports.
in module Main
5.5

julia> import Statistics

julia> mean(A)
WARNING: Base.mean is deprecated: it has been moved to the standard library package Statistics.
Add using Statistics to your imports.
in module Main
5.5

julia> import Statistics.mean

julia> mean(A)
WARNING: Base.mean is deprecated: it has been moved to the standard library package Statistics.
Add using Statistics to your imports.
in module Main
5.5

I think you need to restart your Julia session to cancel the deprecated warnings.

2 Likes

new session, but that warning is still there.

Once deprecated warnings are invoked, they stick to the session even after calling using Statistics. So, you need to call using Statistics before invoking deprecated warnings.

If it still happens, can you paste all the commands from the start-up of Julia along with versioninfo()?

1 Like

Oh, thanks.

So from the new session, call using Statistics first before any call to mean(A), then no such warning.

1 Like