Construct the path to a file inside a worcs project directory
in a platform-independent way, see file.path.
Arguments
- ...
Character vectors, indicating directory- or file names.
- worcs_directory
The project directory (or one of its subdirectories, in which case the project directory is determined via worcs_root), Default: '.' (current directory).
- fsep
Path separator to use.
Examples
if(requireNamespace("withr", quietly = TRUE)){
withr::with_tempdir({
writeLines("", ".worcs")
writeLines("hello world", "myfile.txt")
file.exists(worcs_path("myfile.txt"))
})
}
#> [1] TRUE
