# Example with the iris data set
iris_path = tempfile()
fwrite(iris, iris_path)
# The first lines of the text file on viewer
peek(iris_path)
# displaying the first lines:
peek(iris_path, onlyLines = TRUE)
# only getting the data from the first observations
base = peek(iris_path, view = FALSE)
head(base)
Run the code above in your browser using DataLab