I can't load RDatasets in 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]

Welcome! Can you provide a minimum working example (MWE) showing what packages you’re using before getting this error? Also, what versions of Julia and packages are you using (type ] status at the REPL to see your package versions).

Also, FYI, you can format your code by enclosing it in triple backticks (```some code```) as described here.

The problem is most likely not related to DataFrames.jl. I would be good to know what versions of packages you have installed?