JuliaStats / RDatasets.jl

Julia package for loading many of the data sets available in R
GNU General Public License v3.0
160 stars 56 forks source link

Some datasets fail to load #15

Closed garborg closed 10 years ago

garborg commented 10 years ago
package_directory = Pkg.dir("RDatasets", "data")
for directory in readdir(package_directory)
    for file in readdir(joinpath(package_directory, directory))
        dataname = replace(file, ".csv", "")
        dataname = replace(dataname, ".rda", "")
        try
            data(directory, dataname)
        catch
            @printf "Failed: %s - %s\n" directory dataname
        end
    end
end

yields

Failed: Zelig - friendship
Failed: Zelig - sna.ex
Failed: mlmRev - Oxboys
Failed: mlmRev - bdf
johnmyleswhite commented 10 years ago

I think some of those data sets are literally empty. We should see if there's something there to actually be offering.

garborg commented 10 years ago

I'll take a look.