Download OxCal
oxcal_install(
install_url = NULL,
install_location = NULL,
verbose = getOption("ArchaeoCal.verbose")
)
A character
string specifying the url from which
OxCal could be installed.
A character
string specifying the directory to
extract OxCal files to. It will be created if necessary
(see utils::unzip()
).
A logical
scalar: should status updates be displayed?
Invisibly returns the path to the OxCal directory.
Other OxCal tools:
oxcal_calibrate()
,
oxcal_configure()
,
oxcal_execute()
,
oxcal_parse()
,
plot()
if (FALSE) {
## Download OxCal
oxcal_configure()
## 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)
plot(res, likelihood = TRUE, posterior = FALSE)
plot(res, likelihood = FALSE, posterior = TRUE)
}