# NOT RUN {
if(requireNamespace("IFCdata", quietly = TRUE)) {
tmp <- tempdir(check = TRUE)
## use a cif file, but you can also subset rif
file_cif <- system.file("extdata", "example.cif", package = "IFCdata")
## subset objects 0,1 and 4 from file
exported <- ExportToXIF(fileName = file_cif, write_to = paste0(tmp, "\\test.cif"),
overwrite = TRUE, objects = c(0,1,4))
} 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