Read gadget input file, return gadgetfile S3 class representing file

read.gadget.file(
  path,
  file_name,
  file_type = "generic",
  fileEncoding = "UTF-8",
  missingOkay = FALSE,
  recursive = TRUE
)

Arguments

path

Base directory to read file from

file_name

File name, or path relative to (path), to read

file_type

What sort of gadget file this is, e.g. 'time', 'area', ... See Rgadget::gadget_filetypes for recognised types

fileEncoding

Character encoding of file, defaults to "UTF-8"

missingOkay

If TRUE, return an empty gadgetfile object if file does not exist.

recursive

Read in all nested files too (default TRUE)?