cbk.download.image: Download imagefile from a surface

Description Usage Arguments Value See Also Examples

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

Description

Download imagefile from a surface. This function download CASTEML of a surface, parse them and extract attachment tag in the first spot, and download to local directory. When outfile exists, this function does not download a new imagefile.

Usage

1
2
cbk.download.image(pmlfile_or_surface, outfile = NULL, force = FALSE,
  directAuth = NULL, recursive = FALSE)

Arguments

pmlfile_or_surface

Unique ID of surface. Really, surface can be pmlfile, stone, and bib although only the first image will be downloaded.

outfile

Path to save a imagefile. Unless specified, imagename of Medusa will be located on current directory.

force

Download again and overwrite preexisting local imagefile.

Value

Path to the imagefile downloaded

See Also

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

Examples

1
2
3
4
5
directAuth <- list(uri="https://dream.misasa.okayama-u.ac.jp/pub/")
pmlfile <- cbk.download.casteml("20160819165624-372633",directAuth=directAuth,force=TRUE)
imagefile <- cbk.download.image(pmlfile,directAuth=directAuth)

imagefile <- cbk.download.image("20160819165624-372633",directAuth=directAuth,force=TRUE)

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