https://github.com/archaeostat/archaeocal

An R Interface to OxCal

https://github.com/archaeostat/archaeocal

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.0%) to scientific vocabulary

Keywords

geochronology oxcal r-package radiocarbon-calibration radiocarbon-dates
Last synced: 10 months ago · JSON representation

Repository

An R Interface to OxCal

Basic Info
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
geochronology oxcal r-package radiocarbon-calibration radiocarbon-dates
Created about 3 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Contributing License Code of conduct

README.Rmd

---
output: github_document
bibliography: inst/bibliography.bib
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# ArchaeoCal


[![R-CMD-check](https://github.com/ArchaeoStat/ArchaeoCal/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ArchaeoStat/ArchaeoCal/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/ArchaeoStat/ArchaeoCal/branch/main/graph/badge.svg?token=fXOWoBzKIw)](https://app.codecov.io/gh/ArchaeoStat/ArchaeoCal)

[![r-universe](https://archaeostat.r-universe.dev/badges/ArchaeoCal)](https://archaeostat.r-universe.dev){.pkgdown-devel}
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)


## Overview

## Installation

You can install the latest version of **ArchaeoCal** from [our repository](https://ArchaeoStat.r-universe.dev) with:

```{r universe-installation, eval=FALSE}
options(repos = c(CRAN = "https://cloud.r-project.org",
                  universe = "https://archaeostat.r-universe.dev"))

install.packages("ArchaeoCal")
```

And the development version from [GitHub](https://github.com/) with:

```{r gh-installation, eval=FALSE}
# install.packages("remotes")
remotes::install_github("ArchaeoStat/ArchaeoCal")
```

## Usage

This example uses data available through the [**ArchaeoData**](https://github.com/ArchaeoStat/ArchaeoData) package which is available in a [separate repository](https://archaeostat.r-universe.dev). **ArchaeoData** provides OxCal [@bronkramsey2009] input models.

```{r ArchaeoData, eval=FALSE}
## Install the latest version
install.packages("ArchaeoData", repos = "https://archaeostat.r-universe.dev")
```

```{r setup, eval=FALSE}
## Load package
library(ArchaeoCal)

## Download OxCal
oxcal_configure(ask = FALSE)
```

```{r excute, eval=FALSE}
## Construct the path to the OxCal script
path <- file.path("oxcal", "ksarakil", "ksarakil.oxcal")
file <- system.file(path, package = "ArchaeoData")

## Read the script from Bosch et al. 2015
scr <- readLines(file)

## Print
# cat(scr, sep = "\n")

## Execute
## /!\ this may take a while /!\
out <- oxcal_execute(scr, file = "path/to/my/results")

## Parse OxCal output
res <- oxcal_parse(out)
```

## References

Owner

  • Name: ArchaeoStat
  • Login: ArchaeoStat
  • Kind: organization

GitHub Events

Total
  • Push event: 6
Last Year
  • Push event: 6

Dependencies

DESCRIPTION cran
  • V8 * imports
  • arkhe >= 1.4.0 imports
  • grDevices * imports
  • graphics * imports
  • methods * imports
  • knitr * suggests
  • markdown * suggests
  • testthat >= 3.0.0 suggests