View source: R/dirnames_filenames.R
| worcs_path | R Documentation |
Construct the path to a file inside a worcs project directory
in a platform-independent way, see file.path.
worcs_path(..., worcs_directory = ".", fsep = .Platform$file.sep)
... |
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. |
Normalized path to file.
if(requireNamespace("withr", quietly = TRUE)){
withr::with_tempdir({
writeLines("", ".worcs")
writeLines("hello world", "myfile.txt")
file.exists(worcs_path("myfile.txt"))
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.