Description Usage Arguments Value Author(s) Examples
Convert spaces in filenames (" ") to linux-type spaces "\ ", needed when calling system() on macOS.
1 | linuxspaces(txt)
|
txt |
filename, which may contain ordinary spaces, e.g. "my file 1.txt" |
filename with modified spaces, e.g. "my\ file\ 1.txt"
Danail Obreschkow
1 2 3 4 5 6 | filename = '~/Desktop/my file 1.txt'
command = sprintf('ls -l %s',linuxspaces(filename))
## Not run:
system(command)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.