# Path where raw 'SPSS' files are
input <- system.file("extdata/reds", package = "ILSAmerge")
# Path where merged files will be saved
unlink(file.path(tempdir(),"ILSAmerge"),recursive = TRUE)
dir.create(file.path(tempdir(),"ILSAmerge"))
output <- file.path(tempdir(),"ILSAmerge")
# Merging 'REDS' 2021, as .rds file
ILSAmerge(inputdir = input, outputdir = output, filetype = "rds", quiet = FALSE)
# Read student file
readILSA(file = file.path(output,"BSGV1.rds"))
Run the code above in your browser using DataLab