Dear all,
how can I install the packages in GitHub .
For example, I want to add “DataFramesMeta”(dev version) .
If I run ] add DataFramesMeta
, it always add the version 0.7.1.
Dear all,
how can I install the packages in GitHub .
For example, I want to add “DataFramesMeta”(dev version) .
If I run ] add DataFramesMeta
, it always add the version 0.7.1.
When I use the macro @subset. It always gets an error.
julia> using Statistics
julia> df = DataFrame(x = [1, 1, 2, 2], y = [1, 2, 101, 102]);
julia> gd = groupby(df, :x);
julia> outside_var = 1;
julia> @subset(df, :x .> 1)
ERROR: LoadError: UndefVarError: @subset not defined
in expression starting at none:1
I think it is the question of DataFramesMeta version.
When I add DataFramesMeta.jl to a clean environment, I get v0.11.0. I’d suggest trying to update your packages to the latest versions with ] up
or adding an explicit version of DataFramesMeta using ] add DataFramesMeta@0.11.0
to see if you can work out which of your current dependencies is preventing you from getting a more recent version of it.
(@v1.7) pkg> add DataFramesMeta@0.11.0
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package DataFrames [a93c6f00]:
DataFrames [a93c6f00] log:
├─possible versions are: 0.11.7-1.3.4 or uninstalled
├─restricted to versions * by an explicit requirement, leaving only versions 0.11.7-1.3.4
├─restricted by compatibility requirements with DataFramesMeta [1313f7d8] to versions: 1.0.0-1.3.4
│ └─DataFramesMeta [1313f7d8] log:
│ ├─possible versions are: 0.4.0-0.11.0 or uninstalled
│ └─restricted to versions 0.11.0 by an explicit requirement, leaving only versions 0.11.0
└─restricted by compatibility requirements with ModelConstructors [e47e5152] to versions: 0.11.7-0.22.7 — no versions left
└─ModelConstructors [e47e5152] log:
├─possible versions are: 0.1.3-0.2.4 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 0.1.3-0.2.4
Looks like you need a newer version of ModelContructors that works with a newer version of DataFrames. Looking in GitHub, the current development version of ModelConstructors should work with the latest version of DataFrames, so you can do ] add ModelConstructors#main
to get the development version.