Closed MartinHinz closed 3 years ago
Reason: When Resolution is changed, Oxcal just add another entry for the calibration ("calib[0]") with the settings from the Option command. Monkey patch solution: in extractCalCurveFromOxcalResult() only the last entry of name, start and resolution is considered now, using
calcurve_resolution <- calcurve_resolution[length(calcurve_resolution)]
More sustainable solution:
From a user:
I am trying to use oxcAAR, which seems to be a nice tool for R user when calibrating 14C dates. I have a problem when changing the Resolution option to 1 year instead of the default (5 years). The simple following script works perfectly:
and produce an adequate output (.js) file.
But, changing the resolution gives an error:
The output .js file is built (I attach it to this mail), but "parseOxcalOutput" fails to read its content.
Do you have any idea where does this error come from?