Learn R Programming

IFC (version 0.1.1)

readIFC: IFC Files Generic Reader

Description

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

Usage

readIFC(fileName, ...)

Arguments

fileName

path to file.

...

arguments to pass to ExtractFromDAF or ExtractFromXIF.

Value

an object of class `IFC_data`.

Details

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

Examples

Run this code
# NOT RUN {
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.'))
}
# }

Run the code above in your browser using DataLab