Eliminate CSV dependency

Open
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
data

Research direction

Inspect the package's CSV loading paths and dependency configuration, then compare their behavior with Julia's built-in DelimitedFiles, including compressed files. Done means the package no longer needs the CSV dependency while its datasets continue to load correctly; consider the stated RCall and alternative-reader tradeoffs before choosing an approach.

Written by the indexing model from the issue text.

Description

For this package all the CSV files are relatively small I think.

CSV is a heavy dependency, on startup. It pays off if you load large CSV files. I was thinking maybe you could rather use the really fast (built into Base), it seems even with compressed files:

julia> @time using DelimitedFiles
  0.004993 seconds (1.15 k allocations: 82.234 KiB, 78.42% compilation time)

https://docs.julialang.org/en/v1/stdlib/DelimitedFiles/

A downside could be: If in all real-world code you would load CSV anyway, then not effective (but neither slower this way). Another option could be, this package if often (not always) used with RCall (what I'm looking into now). And plausibly then at least you could rather use CSV reading from R than Julia's CSV. Or Python's tool where appropriate.

Dominant language
R
Stars
167
Forks
54
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaStats/RDatasets.jl

All issues in JuliaStats/RDatasets.jl

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.