cbk.download.casteml: Download analysis records as a CASTEML file

Description Usage Arguments Details Value See Also Examples

View source: R/cbk.download.casteml.R

Description

Download analysis records as a CASTEML file. This function returns path to the file. The file is stored in a temporary directory unless specified. Note with the same arguments, this function downloads only once per an R session.

Usage

1
2
3
cbk.download.casteml(stone, file = NULL, force = FALSE,
  directDownload = TRUE, directAuth = NULL, Recursive = FALSE,
  recursive = FALSE)

Arguments

stone

Unique identification number of stones in Medusa.

file

File path to save downloaded CASTEML file. Default is a temporary file in a temporary directory.

force

Force download CASTEML file.

directDownload

Download CASTEML file via HTTP otherwise via ‘casteml download’.

directAuth

Parameter for HTTP basic authentication.

Recursive

Download a whole family of a stone (equivalent to –family in casteml download)

recursive

Download descendants of a stone (equivalent to –descendant in casteml download).

Details

An user should specify Recursive and recursive option not a part of argument ‘stone’ but explicitly.

Value

Path to CASTEML file that was downloaded.

See Also

casteml download, https://github.com/misasa/casteml, and cbk.convert.casteml

Examples

1
2
3
4
5
6
7
8
stone <- c("20080616170000.hk","20080616170056.hk","20080616170054.hk")
pmlfiles <- lapply(stone, cbk.download.casteml)

pmlfile <- cbk.download.casteml("20081202172326.hkitagawa")
directAuth <- list(uri="dream.misasa.okayama-u.ac.jp/demo/",user='admin',password='admin')
pmlfile <- cbk.download.casteml("20110416134901-075-241",directAuth=directAuth)
pmlfile <- cbk.download.casteml("20110416134901-075-241",directAuth=directAuth,recursive=TRUE)
pmlfile <- cbk.download.casteml("20110416134901-075-241",directAuth=directAuth,Recursive=TRUE)

misasa/chelyabinsk documentation built on Nov. 24, 2020, 5:47 a.m.