fileProxy class is used as a common parent for
fcsProxy and attachmentProxy
classes. Objects of the fileProxy class shall not be created
directly, unless you know exactly what you are doing. There is no constructor defined, but objects can be created using
new("fileProxy",
name = ...., Object of class character
url = ...., Object of class character
size = ...., Object of class numeric
md5sum = ...., Object of class character or NULL
localpath = ...., Object of class character or NULL
)name:character containing the
name of the FlowRepository file.
url:character containing the
url of the FlowRepository file.
size:numeric containing the size
of the FlowRepository file in bytes.
md5sum:character or NULL
containing the MD5 sum of the FlowRepository file.
localpath:character or NULL
containing the path the FlowRepository file as saved on the local
file system. This slot is used to determine whether the file has
been downloaded to the local file system. A value of NULL
indicates that the file has not been downloaded.
fileProxy.
See summary for details.
Usage:
summary(fileProxy)
localpath slot and return an
updated copy of the fileProxy object.
See download for details.
Usage:
download(fileProxy, dirpath=NULL, filepath=NULL,
curlHandle=getCurlHandle(cookiefile=""), )
show.progress=TRUE, ...)
localpath slot
is not NULL, which indicates that the file has been downloaded
to the local file system. Return FALSE if the localpath
is NULL.
See is.downloaded for details.
Usage:
is.downloaded(fileProxy)
character or NULL
containing the path the FlowRepository file as saved on the local
file system. This slot is used to determine whether the file has
been downloaded to the local file system. A value of NULL
indicates that the file has not been downloaded.
fileProxy are used to hold information about
a FlowRepository file. This is a common parent class for
fcsProxy and attachmentProxy
classes, which hold information about an FCS file and about an
attachment, respectively.
Direct instances of the fileProxy are not expected.
fcsProxy, attachmentProxy
## Obtain dataset information from FlowRepository
myDataset <- flowRep.get("FR-FCM-ZZZG")
is(fcs.files(myDataset)[[1]], "fileProxy")
## It should be as fcsProxy is a fileProxy
is(attachments(myDataset)[[1]], "fileProxy")
## It should be as attachmentProxy is a fileProxy
Run the code above in your browser using DataLab