Add `quoteRule=` to fread

Open
#2,768 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r

Research direction

Start by reading PR #2755, its linked comment, and test 1906 to understand the improper-quote-rule warning and current quote= behavior in fread. Build representative cases for unusual separators and other quote rules, then decide whether quoteRule= is needed or quote= should be extended, with tests documenting the chosen API.

Written by the indexing model from the issue text.

Description

feature request fread

As discussed in PR #2755 in this comment.

In the test 1906 added there, the improper-quote-rule warning now suggests to pass quote="" to turn off the warning. This would be used for files using an unusual sep= guaranteed not to present in any field. So that the fields don't need to be quoted even if they contain quotes and escapes. The quoteRule= would not be needed for that.

But in other cases, quoteRule= might be needed. Would need to build up some cases and decide what this API should be.

Alternatively, perhaps the existing quote= argument could be embellished rather than adding quoteRule=.

Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

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 Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.