Description Usage Arguments Value Examples
Return filepaths from arguments. These filepaths can then be used to identify files/folders for sending to the Docker container.
1 | filestosend_get(arglist, wd = NULL)
|
arglist |
Character vector of arguments |
wd |
Working directory in which to look for files |
Character vector
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | library(outsider.base)
# set-up: create wd and files to send
wd <- file.path(tempdir(), 'results')
dir.create(wd)
file1 <- file.path(wd, 'file1')
file.create(file1)
file2 <- file.path(wd, 'file2')
file.create(file2)
# identify files to be sent to container
arglist <- c('-in', file1, '-out', file2)
(filestosend_get(arglist = arglist))
# works with -wd
arglist <- c('-in', 'file1', '-out', 'file2', '-wd', wd)
(filestosend_get(arglist = arglist, wd = wd))
# clean-up
unlink(wd, recursive = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.