R/read_bullet.R
read_bullet.Rd
Read all scans of a specified format from a folder. This operation is recursive, i.e. also reads scans from the folder of a folder.
read_bullet(folder = NULL, ext = ".x3p$", urllist = NULL, size = NA)
character describing the path to a folder
character value, consisting of the extension(s) describing the file format the scans are in
list of URLs pointing to x3p files
specify size for reading binary file of surface matrix in x3p format
data frame with two variables, source and x3p, containing the path to the file and the corresponding x3p file
if (FALSE) {
dir.create("data")
x3ptools::NRBTDsample_download("data")
b1 <- read_bullet("data/Bullet1", "x3p")
b2 <- read_bullet("data/Bullet2", "x3p")
on.exit(unlink("data", recursive = T))
b1 <- read_bullet(urllist = hamby252demo[[1]])
b2 <- read_bullet(urllist = hamby252demo[[2]])
}