vim | R Documentation |
VIM
' if PossibleJust a wrapper to file.edit
, trying to use [g]vim as editor, if
installed.
vim(...)
... |
See |
See file.edit
.
Other operating system functions:
clipboard_path()
,
file_copy()
,
file_save()
,
get_boolean_envvar()
,
get_run_r_tests()
,
is_installed()
,
is_r_package_installed()
,
is_success()
,
is_windows()
,
view()
,
wipe_tempdir()
,
with_dir()
if (interactive()) {
path <- file.path(tempdir(), "foo.txt")
writeLines(c("abc", "xyz"), con = path)
vim(path)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.