connector_fs | R Documentation |
fs
connectorInitializes the connector for file system type of storage. See ConnectorFS for details.
connector_fs(path, extra_class = NULL)
path |
character Path to the file storage. |
extra_class |
character Extra class to assign to the new connector. |
The extra_class
parameter allows you to create a subclass of the
ConnectorFS
object. This can be useful if you want to create
a custom connection object for easier dispatch of new s3 methods, while still
inheriting the methods from the ConnectorFS
object.
A new ConnectorFS object
# Create FS connector
cnt <- connector_fs(tempdir())
cnt
# Create subclass connection
cnt_subclass <- connector_fs(
path = tempdir(),
extra_class = "subclass"
)
cnt_subclass
class(cnt_subclass)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.