# Get path to the repertoire-example file
file <- system.file("extdata", "repertoire-example.yaml", package="airr")
# Load data file
repertoire <- read_airr(file)
# Write a Rearrangement data file
outfile <- file.path(tempdir(), "output.yaml")
write_airr(repertoire, outfile)
Run the code above in your browser using DataLab