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

Description Usage Arguments Details Value See Also Examples

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

Description

Download analysis records as a CASTEML file via HTTP. 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
cbk.download.casteml.1(stone, file = NULL, force = FALSE,
  directAuth = NULL, Recursive = FALSE, recursive = FALSE)

Arguments

stone

Unique identification number of a stone in Medusa.

file

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

force

Force download CASTEML file.

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

This function was created on 2017-04-11 to download CASTEML file by its own from Medusa and the first argument can only accept single ‘stone’ unlike cbk.download.casteml can accept an array consists of stones.

Value

Path to CASTEML file that was downloaded.

See Also

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

Examples

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

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

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