View source: R/labkey.webdav.R
labkey.webdav.get | R Documentation |
This will download a file from a LabKey Server using WebDAV.
labkey.webdav.get(
baseUrl=NULL,
folderPath,
remoteFilePath,
localFilePath,
overwrite=TRUE,
fileSet='@files'
)
baseUrl |
a string specifying the |
folderPath |
a string specifying the |
remoteFilePath |
the path of this file on the remote server, relative to the folder root. |
localFilePath |
the local filepath where this file will be saved |
overwrite |
(optional) if true, any pre-existing file at this location will be overwritten. Defaults to TRUE |
fileSet |
(optional) the name of file server fileSet, which is typically "@files" (the default value for this argument). In some cases this might be "@pipeline" or "@fileset". |
Download a single file from a LabKey Server to the local machine using WebDAV.
TRUE or FALSE, depending on if this file was downloaded and exists locally. Will return FALSE if the already file exists and overwrite=F.
Ben Bimber, Ph.D.
labkey.webdav.put
,
labkey.webdav.mkDir
,
labkey.webdav.mkDirs
,
labkey.webdav.pathExists
,
labkey.webdav.listDir
,
labkey.webdav.delete
,
labkey.webdav.downloadFolder
## Not run:
## download a single file from a LabKey Server
library(Rlabkey)
labkey.webdav.get(
baseUrl="http://labkey/",
folderPath="home",
remoteFilePath="folder/myFile.txt",
localFilePath="myDownloadedFile.txt",
overwrite=TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.