File: readObjectFile.Rd

package info (click to toggle)
r-bioc-alabaster.base 1.6.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,652 kB
  • sloc: cpp: 11,377; sh: 29; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readObjectFile.R
\name{readObjectFile}
\alias{readObjectFile}
\alias{saveObjectFile}
\title{Utilities to read and save the object file}
\usage{
readObjectFile(path)

saveObjectFile(path, type, extra = list())
}
\arguments{
\item{path}{Path to the directory representing an object.}

\item{type}{String specifying the type of the object.}

\item{extra}{Named list containing extra metadata to be written to the OBJECT file in \code{path}.
Names should be unique, and any element named \code{"type"} will be overwritten by \code{type}.}
}
\value{
\code{readObjectFile} returns a named list of metadata for \code{path}.

\code{saveObjectFile} saves \code{metadata} to the OBJECT file inside \code{path}
}
\description{
The OBJECT file inside each directory provides some high-level metadata of the object represented by that directory.
It is guaranteed to have a \code{type} property that specifies the object type;
individual objects may add their own information to this file.
These methods are intended for developers to easily read and load information in the OBJECT file.
}
\examples{
tmp <- tempfile()
dir.create(tmp)
saveObjectFile(tmp, "foo", list(bar=list(version="1.0")))
readObjectFile(tmp)

}
\author{
Aaron Lun
}