Learn R Programming

dockr (version 0.8.6)

print_file: Print Contents of Text File

Description

Prints all contents of text file.

Usage

print_file(path)

Arguments

path

character file path of text file.

Value

prints contents of file as a side effect.

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab