# supposing that the data file sample.txt is in the current directory
file <- "sample.txt"
imp <- importTxtInternal(file)
# specifying a directory (arbitrary example directory)
dir <- "/Users/markheckmann/data"
imp <- importTxtInternal(file, dir)
# using a full path
imp <- importTxtInternal("/Users/markheckmann/data/sample.txt")
# load Gridsuite data from URL
imp <- importTxtInternal("http://www.openrepgrid.uni-bremen.de/data/sample.txt")
Run the code above in your browser using DataLab