file.path(..., fsep=dirSeparator())
...
arguments
concatenated together in the order given and separated by the
fsep
string.
If no path arguments are supplied, then an empty character vector is returned.
This function emulates the R function
file.path
.
In addition, the S-PLUS version changes all "\\" or "/" in the path
components to the string given by the
fsep
argument.
# list the contents of the S-PLUS module directory list.files(file.path(getenv("SHOME"),"module"))
# convert a file path to one appropriate for the platform # where S-PLUS is currently running file.path("\\\\dingy\\splus/module/wavelets/wavelets2.pdf")