This document refers to an external file to make sure that works.

x <- readLines("test.txt")
x
#> [1] "a" "b" "c" "d"