Setup OxCal
Usage
oxcal_configure(
command = NULL,
os = NULL,
install = TRUE,
install_location = NULL,
install_url = NULL,
ask = TRUE,
verbose = getOption("ArchaeoCal.verbose")
)
Arguments
- command
A
character
string specifying the path to the OxCal directory.- os
A
character
string specifying the operating system of the workstation. It must be one of "Linux
", "Windows
" or "Darwin
". IfNULL
(the default), the operating system will be determined automatically (seeSys.info()
).- install
A
logical
scalar: if OxCal binary is not found, should it be downloaded and installed?- install_location
A
character
string specifying the directory to extract OxCal files to. It will be created if necessary (seeutils::unzip()
).- install_url
A
character
string specifying the url from which OxCal could be installed.- ask
A
logical
scalar: if OxCal is not installed, should the user be asked before downloading it?- verbose
A
logical
scalar: should status updates be displayed?
See also
Other OxCal tools:
oxcal_calibrate()
,
oxcal_execute()
,
oxcal_install()
,
oxcal_parse()
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)
} # }