View source: R/load_entrypoint.R
load_entrypoint | R Documentation |
Loads the designated project entry point into the default
editor, using file.edit
.
load_entrypoint(worcs_directory = ".", verbose = TRUE, ...)
worcs_directory |
Character, indicating the WORCS project directory to
which to save data. The default value |
verbose |
Logical. Whether or not to print status messages to the console. Default: TRUE |
... |
Additional arguments passed to |
No return value. This function is called for its side effects.
## Not run:
# Create directory to run the example
old_wd <- getwd()
test_dir <- file.path(tempdir(), "entrypoint")
dir.create(test_dir)
setwd(test_dir)
# Prepare worcs file and dummy entry point
worcs:::write_worcsfile(".worcs", entry_point = "test.txt")
writeLines("Hello world", con = file("test.txt", "w"))
# Demonstrate load_entrypoint()
load_entrypoint()
# Cleaning example directory
setwd(old_wd)
unlink(test_dir, recursive = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.