TidyFileResourceResolver {resourcer}R Documentation

Tidy file Resource resolver

Description

Tidy file Resource resolver

Tidy file Resource resolver

Format

A R6 object of class TidyFileResourceResolver

Details

The resource is a file and data format is handled by a reader from tidyverse. The data format is one of: csv (comma delimiter), csv2 (semicolon delimiter), tsv (tab delimiter), ssv (space delimiter), delim (delim parameter to be specified in the URL, default is space char), spss, sav, por, stata, dta, sas, xpt, excel, xls, xlsx.

Methods

$new() Create new TidyFileResourceResolver instance. $isFor(x) Get a logical that indicates that the resolver is applicable to the provided resource object. $newClient() Make a client for the provided resource.

Super class

resourcer::ResourceResolver -> TidyFileResourceResolver

Methods

Public methods

Inherited methods

Method isFor()

Check that the provided resource has a URL that locates a tidy data file: the resource can be accessed as a file and the resource format is one of "csv", "csv2", "tsv", "delim", "ssv", "spss", "sav", "por", "stata", "dta", "sas", "xpt", "excel", "xls" or "xlsx" (case is ignored).

Usage
TidyFileResourceResolver$isFor(x)
Arguments
x

The resource object to validate.

Returns

A logical.


Method newClient()

Creates a TidyFileResourceClient instance from provided resource.

Usage
TidyFileResourceResolver$newClient(x)
Arguments
x

A valid resource object.

Returns

A TidyFileResourceClient object.


Method clone()

The objects of this class are cloneable with this method.

Usage
TidyFileResourceResolver$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


[Package resourcer version 1.4.0 Index]