Skip to contents

Download OxCal

Usage

oxcal_download(path = NULL)

Arguments

path

A character string specifying the directory to extract files to. It will be created if necessary (see utils::unzip()).

Value

Invisibly returns path.

Note

Adapted from oxcAAR::quickSetupOxcal().

See also

Author

N. Frerebeau

Examples

if (FALSE) {
## Download OxCal
oxcal_setup()

## Calibrate 14C dates
cal <- oxcal_calibrate(
  names = c("X","Y"),
  dates = c(5000, 4500),
  errors = c(45, 35)
)
plot(cal, curve = FALSE)
plot(cal, curve = TRUE)

## Custom script
scr <- 'Plot()
 {
  Sequence("Sequence1")
  {
   Boundary("Begin");
   Phase("Phase1")
   {
    R_Date("Lab-1",5000,25);
    R_Date("Lab-2",4900,37);
   };
   Boundary("Between");
   Phase("Phase2")
   {
    R_Date("Lab-3",4800,43);
   };
   Boundary("End");
  };
 };'
out <- oxcal_execute(scr)
res <- oxcal_parse(out)

plot(res, curve = FALSE)
plot(res, curve = TRUE)

as.data.frame(res)
}