readIFC: IFC Files Generic Reader

View source: R/readIFC.R

readIFCR Documentation

IFC Files Generic Reader

Description

Reads IFC data from IFC files no matter if they are FCS, DAF, RIF or CIF.

Usage

readIFC(fileName, ...)

Arguments

fileName

path to file.

...

arguments to pass to ExtractFromDAF or ExtractFromXIF or ExtractFromFCS.

Details

If input 'fileName' is a DAF file ExtractFromDAF will be used to read the file.
If it is a CIF or RIF file readIFC will use ExtractFromXIF.
Finally, if 'fileName' is not a DAF, nor a CIF, nor a RIF file readIFC will use ExtractFromFCS.

Value

an object of class 'IFC_data'.

Examples

if(requireNamespace("IFCdata", quietly = TRUE)) {
  ## use a rif file, but you can also read daf or cif
  file_rif <- system.file("extdata", "example.rif", package = "IFCdata")
  rif <- readIFC(fileName = file_rif)
} else {
  message(sprintf('Please run `install.packages("IFCdata", repos = "%s", type = "source")` %s',
                  'https://gitdemont.github.io/IFCdata/',
                  'to install extra files required to run this example.'))
}

IFC documentation built on Sept. 14, 2023, 1:08 a.m.