Learn R Programming

cloudfs (version 0.1.3)

cloud_guess_read_fun: Guess reading function based on file extensions

Description

Take a look at the switch call. That's basically it. Returns an appropriate function or throws an error if wasn't able to find one.

Usage

cloud_guess_read_fun(file)

Value

A reading function.

Arguments

file

Path to a file relative to project folder root. Can contain only letters, digits, '-', '_', '.', spaces and '/' symbols.

Default reading functions

Here's how we identify a reading function based on file extension