info: Retrieve Metadata from an Object Store

Description Usage Arguments Value Note See Also Examples

Description

Retrieve metadata like last modified time and size corresponding to the specified key from the object store service connection con. If key corresponds to a directory, then a data frame listing the directory contents is returned.

Usage

1
info(con, key = "")

Arguments

con

An object store connection from register_service.

key

A key name, optionally including a / separated directory path.

Value

Either a data frame directory listing when key corresponds to a directory, or an R list of headers and their values corresponding to key.

Note

Corresponds to the HTTP HEAD operations. Directory entries in the data frame directory listing output are identified by size=NA.

See Also

register_service uncache delete

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Start an example local mongoose backend server
mongoose_start()
con <- register_service()
# Cache the 'iris' dataset in a directory named 'mydata':
cache(con, iris, "mydata/iris")
# Print some info about it
info(con, "mydata/iris")
# Retrieve it from the cache into a new variable called 'x'
x <- uncache(con, "mydata/iris")
# Delete the entire 'mydata' directory
delete(con, "mydata")
mongoose_stop()

bwlewis/feathercache documentation built on May 13, 2019, 9:06 a.m.