Learn R Programming

fritools (version 3.3.0)

view: View a File or Directory

Description

Call shell.exec on windows, mimic shell.exec otherwise.

Usage

view(path, program = NA)

Arguments

path

A path to a file or directory.

program

A program to use.

Value

Invisibly NULL.

See Also

Other operating system functions: file_copy(), file_save(), get_boolean_envvar(), get_run_r_tests(), is_installed(), is_r_package_installed(), is_success(), is_windows(), vim(), with_dir()

Examples

Run this code
# NOT RUN {
path <- file.path(tempdir(), "foo.txt")
writeLines(c("abc", "xyz"), con = path)
view(path)
# }

Run the code above in your browser using DataLab