Download and Install OxCal
Usage
oxcal_install(
target,
source = "https://c14.arch.ox.ac.uk/OxCalDistribution.zip",
verbose = getOption("ArchaeoCal.verbose"),
...
)Arguments
- target
A
characterstring specifying the directory to extract OxCal files to. It will be created if necessary (seeutils::unzip()).- source
A
characterstring specifying the url from which OxCal could be installed.- verbose
A
logicalscalar: should R report extra information on progress?- ...
Currently not used.
Value
oxcal_install() is called for its side-effect.
Invisibly returns the path to the OxCal directory.
Examples
if (FALSE) { # \dontrun{
## 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)
as.data.frame(res)
} # }