From f1e57a083c043ac690b28c00ebf634c78d973cc6 Mon Sep 17 00:00:00 2001
From: Peter Shin <petershintech@gmail.com>
Date: Sun, 11 Oct 2020 08:21:00 +1100
Subject: [PATCH] Replace deprecated CSV.read()

---
 src/datasets.jl | 2 +-
 src/packages.jl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/datasets.jl b/src/datasets.jl
index 7af6c461..6d664da6 100644
--- a/src/datasets.jl
+++ b/src/datasets.jl
@@ -6,7 +6,7 @@ end
 function datasets()
     if RDatasets.__datasets === nothing
         path = joinpath(dirname(@__FILE__), "..", "doc", "datasets.csv")
-        global __datasets = CSV.read(path)
+        global __datasets = DataFrame(CSV.File(path))
     end
     return RDatasets.__datasets::DataFrame
 end
diff --git a/src/packages.jl b/src/packages.jl
index 89921725..5f925a33 100644
--- a/src/packages.jl
+++ b/src/packages.jl
@@ -1,7 +1,7 @@
 function packages()
     if RDatasets.__packages === nothing
         path = joinpath(dirname(@__FILE__), "..", "doc", "packages.csv")
-        global __packages = CSV.read(path)
+        global __packages = DataFrame(CSV.File(path))
     end
     return RDatasets.__packages::DataFrame
 end