R - file.path(): construct path to file

15 Oct 2017

Construct the path to a file from components in a platform-independent way

outFold <- "outfolder"
file.path(outFold, "myfile.txt")
# [1] "outfolder/myfile.txt"
[ R  function  ]