I can't load RDatasets in Julia

Apoorva-Bhatt
Fri, 05 Mar 2021 15:34:09 +0000
New to Julia

On doing Iris = dataset(“datasets”, “iris”), I get the following error -

Iris

UndefVarError: load not defined

action(::Symbol, ::Array{Union{Base.PkgId, Module},1}, ::FileIO.Formatted; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\ASUS.julia\packages\FileIO\ajK7j\src\loadsave.jl:202

action at C:\Users\ASUS.julia\packages\FileIO\ajK7j\src\loadsave.jl:192 [inlined]

action(::Symbol, ::Array{Union{Base.PkgId, Module},1}, ::Symbol, ::String; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\ASUS.julia\packages\FileIO\ajK7j\src\loadsave.jl:181

action at C:\Users\ASUS.julia\packages\FileIO\ajK7j\src\loadsave.jl:181 [inlined]

load(::String; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\ASUS.julia\packages\FileIO\ajK7j\src\loadsave.jl:113

load at C:\Users\ASUS.julia\packages\FileIO\ajK7j\src\loadsave.jl:110 [inlined]

dataset(::String, ::String) at C:\Users\ASUS.julia\packages\RDatasets\99YUH\src\dataset.jl:12

##function_wrapped_cell#415 at C:\Users\ASUS\03_DataFrames.jl#==#95f90590-7dc0-11eb-38aa-058b3ec60fc4:1 [inlined]

##function_wrapped_cell#415(::typeof(RDatasets.dataset)) at .\none:0

invokelatest(::Any, ::Any, ::Vararg{Any,N} where N; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at .\essentials.jl:710

invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at .\essentials.jl:709

compute(::Main.PlutoRunner.Computer) at C:\Users\ASUS.julia\packages\Pluto\uSLhP\src\runner\PlutoRunner.jl:120

(::Main.PlutoRunner.var"#3#4")() at C:\Users\ASUS.julia\packages\Pluto\uSLhP\src\runner\PlutoRunner.jl:209

run_inside_trycatch(::Main.PlutoRunner.var"#3#4", ::Base.UUID, ::Main.PlutoRunner.ReturnProof) at C:\Users\ASUS.julia\packages\Pluto\uSLhP\src\runner\PlutoRunner.jl:169

run_expression(::Expr, ::Base.UUID, ::Tuple{Set{Symbol},Set{Symbol}}) at C:\Users\ASUS.julia\packages\Pluto\uSLhP\src\runner\PlutoRunner.jl:208

top-level scope at none:1

eval(::Module, ::Any) at .\boot.jl:331

(::Distributed.var"#103#104"{Distributed.CallMsg{:call}})() at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:290

run_work_thunk(::Distributed.var"#103#104"{Distributed.CallMsg{:call}}, ::Bool) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:79

run_work_thunk(::Distributed.RemoteValue, ::Function) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:88

(::Distributed.var"#96#98"{Distributed.RemoteValue,Distributed.var"#103#104"{Distributed.CallMsg{:call}}})() at .\task.jl:356

1. handle_error (::UndefVarError, ::Base.PkgId, ::Array{Union{Ptr{Nothing}, Base.InterpreterIP},1})@ error_handling.jl:61

2. handle_exceptions (::Array{Tuple{Any,Union{Base.PkgId, Module},Array{T,1} where T},1}, ::String)@ error_handling.jl:56

3. #action#33 (::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(FileIO.action), ::Symbol, ::Array{Union{Base.PkgId, Module},1}, ::FileIO.Formatted)@ loadsave.jl:221

4. action @ loadsave.jl:192 [inlined]

5. #action#32 (::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(FileIO.action), ::Symbol, ::Array{Union{Base.PkgId, Module},1}, ::Symbol, ::String)@ loadsave.jl:181

6. action @ loadsave.jl:181 [inlined]

7. #load#14 (::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(FileIO.load), ::String)@ loadsave.jl:113

8. load @ loadsave.jl:110 [inlined]

9. dataset (::String, ::String)@ dataset.jl:12

10. top-level scope @ Local: 1 [inlined]

3 posts - 3 participants