Skip to content

Feature request: Allow to pass custom arguments to the reader functions #236

Description

@Hugovdberg

Report an Issue / Request a Feature

I'm submitting a (Check one with "x") :

  • feature request

Issue Severity Classification -
  • 3 - Low
Expected Behavior

The arguments to a specific reader are available through the file.reader.

Current Behavior

All readers take the path to the data file and the variable to store the data as arguments. When a specific file needs special treatment there is no way to override the default options.

Possible Solution

A few steps are necessary to implement this:

  • Change the signature of the reader functions to the following:
    • filename: Path to the file to be loaded
    • variablename: Variable in the global environment to store the loaded data in
    • ...: Arbitrary arguments to pass to the implemented reader
  • Change the file.reader to pass all arguments, beside the extension (which is used to determine which reader to use), to the reader.
Related issues:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions