##(1) import XSYG file to R (uncomment for usage)
#FILE <- file.choose()
#temp <- readXSYG2R(FILE)
##(2) additional examples for pure XML import using the package XML
## (uncomment for usage)
##import entire XML file
#FILE <- file.choose()
#temp <- xmlRoot(xmlTreeParse(FILE))
##search for specific subnodes with curves containing 'OSL'
#getNodeSet(temp, "//Sample/Sequence/Record[@recordType = 'OSL']/Curve")
##(2) How to extract single curves ... after import
data(ExampleData.XSYG, envir = environment())
##grep one OSL curves and plot the first curve
OSLcurve <- get_RLum.Analysis(OSL.SARMeasurement$Sequence.Object, recordType="OSL")[[1]]
##(3) How to see the structure of an object?
get_structure.RLum.Analysis(OSL.SARMeasurement$Sequence.Object)
Run the code above in your browser using DataLab