Closed hafez-ahmad closed 4 years ago
This is fixed by RData.jl master that is not released yet. I will try to ask maintainers to make appropriate releases for RData.jl and RDatasets.jl.
@hafez-ahmad and @liwen-alt - can you please report what are the versions of:
(in general just updating packages should resolve this issue)
I have the same problem,This is the version of my package
You are not working on latest releases of the packages. Your version of DataFrames.jl is 0.20.2 and it still has identifer
function defined in deprecated code, so it is strange you get this exact error.
The easiest fix is to update your packages:
Please let me know if this helped (it works on my computer).
I have updated package,but the version of package hasn't changed.
The problem is that you are probably using default Project.toml for all your projects. This is not a recommended practice. However, if you want to use it then you can follow what I have described here to understand which package is causing problems with update.
(start with add DataFrames@0.21.2
and see what you get in the error message)
I have also noticed that you use outdated versions of CSV.jl and DataFramesMeta.jl (maybe also others, but for these I can quickly tell that you have them in wrong versions).
When you identify what package stops DataFrames.jl and RData.jl from being updated please let me know, as probably its maintainers should get notified about it. Thank you!
Thank you! Now the problem is solved.
Great, so I think the issue can be closed by someone from JuliaStats.jl.
@bkamins should we create a new release with more restrictive compat?
It should be not strictly required, as RData.jl has a more restrictive compat and package manager should resolve it properly (as constraints in RDatasets.jl are not binding anyway).
However, in some cases (especially if someone uses default Project.toml/Manifest.toml which are typically quite polluted) actually using Package Manager is not as obvious as it seems (it does the right job, but you need to know more than just add PackageName
to control things properly).
Therefore, the cleanest thing would be:
But I think that the reported problem is only transitory, so things can be left as is.
dataset("datasets","iris") Error encountered while loading "C:\Users\hafez\.julia\packages\RDatasets\WIQKI\src\..\data\datasets\iris.rda".
Fatal error: ERROR: UndefVarError: identifier not defined Stacktrace: [1] handle_error(::UndefVarError, ::FileIO.File{FileIO.DataFormat{:RData}}) at C:\Users\hafez.julia\packages\FileIO\ZknoK\src\error_handling.jl:82 [2] handle_exceptions(::Array{Any,1}, ::String) at C:\Users\hafez.julia\packages\FileIO\ZknoK\src\error_handling.jl:77 [3] load(::FileIO.Formatted; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\hafez.julia\packages\FileIO\ZknoK\src\loadsave.jl:186 [4] load at C:\Users\hafez.julia\packages\FileIO\ZknoK\src\loadsave.jl:166 [inlined] [5] #load#13 at C:\Users\hafez.julia\packages\FileIO\ZknoK\src\loadsave.jl:118 [inlined] [6] load at C:\Users\hafez.julia\packages\FileIO\ZknoK\src\loadsave.jl:118 [inlined] [7] dataset(::String, ::String) at C:\Users\hafez.julia\packages\RDatasets\WIQKI\src\dataset.jl:12 [8] top-level scope at none:0