# NOT RUN {
if(requireNamespace("IFCdata", quietly = TRUE)) {
## use a cif file
file_cif <- system.file("extdata", "example.cif", package = "IFCdata")
## read 1st IFD
IFD_first <- getIFD(fileName = file_cif, offsets = "first")
## show information contained in 1st IFD
print(sapply(IFD_first[[1]]$tags, FUN=function(x) x))
} 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