showfile: Print ASCII file to console.

Description Usage Arguments Value Examples

View source: R/showfile.R

Description

Print an ASCII encoded text file to the console. Usfeful for quickly viewing .txt or .csv datasets.

Usage

1
showfile(file, head = "all")

Arguments

file

Name of the file to be printed to the console.

head

Numeric value. Numbers of lines to be printed out. Default value is set to print everything.

Value

None.

Examples

1
2
3
4
  MyPath <- file.path(.libPaths()[1], "desk", "Labor.txt")
  showfile(MyPath) # show everything
  showfile(MyPath, head = 4) # show only first 4 lines
  

andronikoss/desk documentation built on June 3, 2017, 7:05 p.m.