print_file: Print Contents of Text File

Description Usage Arguments Value Examples

View source: R/print_file.R

Description

Prints all contents of text file.

Usage

1
print_file(path)

Arguments

path

character file path of text file.

Value

prints contents of file as a side effect.

Examples

1
2
3
4
5
6
7
8
# create empty file.
fp <- file.path(tempdir(), "tester")
file.create(fp)

# append lines to Dockerfile.
write_lines_to_file("# no nonsense", filepath = fp)

print_file(fp)

dockr documentation built on Dec. 20, 2019, 5:06 p.m.

Related to print_file in dockr...