TidyFileResourceClient: Tidy file resource client

TidyFileResourceClientR Documentation

Tidy file resource client

Description

Tidy file resource client

Tidy file resource client

Format

A R6 object of class TidyFileResourceClient

Details

Connects to a file and use one of the tidyverse reader.

Super classes

resourcer::ResourceClient -> resourcer::FileResourceClient -> TidyFileResourceClient

Methods

Public methods

Inherited methods

Method new()

Create a TidyFileResourceClient instance.

Usage
TidyFileResourceClient$new(resource)
Arguments
resource

A valid resource object.

Returns

A TidyFileResourceClient object.


Method asDataFrame()

Coerce the resource value extracted from the file in tidy format to a data.frame.

Usage
TidyFileResourceClient$asDataFrame(...)
Arguments
...

Additional parameters to as.data.frame (not used yet).

Returns

A data.frame (more specifically a tibble).


Method clone()

The objects of this class are cloneable with this method.

Usage
TidyFileResourceClient$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


resourcer documentation built on April 25, 2023, 5:10 p.m.