Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify file format explicitly #119

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Specify file format explicitly
devmotion committed Mar 6, 2021
commit 8d0349d1122e3a11bd95813545ece877f948eb7a
2 changes: 1 addition & 1 deletion src/RDatasets.jl
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ module RDatasets
@eval Base.Experimental.@optlevel 1
end

using Reexport, RData, CSV, CodecZlib
using Reexport, FileIO, CSV, CodecZlib
@reexport using DataFrames

export dataset
2 changes: 1 addition & 1 deletion src/dataset.jl
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ function dataset(package_name::AbstractString, dataset_name::AbstractString)

rdaname = joinpath(basename, string(dataset_name, ".rda"))
if isfile(rdaname)
return load(rdaname)[dataset_name]
return load(File{format"RData"}(rdaname))[dataset_name]
devmotion marked this conversation as resolved.
Show resolved Hide resolved
end

csvname = joinpath(basename, string(dataset_name, ".csv.gz"))