File: H5Olink.Rd

package info (click to toggle)
r-bioc-rhdf5 2.50.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,584 kB
  • sloc: ansic: 8,521; cpp: 91; makefile: 11; python: 9; sh: 6
file content (48 lines) | stat: -rw-r--r-- 1,515 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
41
42
43
44
45
46
47
48
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/H5O.R
\name{H5Olink}
\alias{H5Olink}
\title{Create a hard link to an object in an HDF5 file}
\usage{
H5Olink(h5obj, h5loc, newLinkName, lcpl = NULL, lapl = NULL)
}
\arguments{
\item{h5obj}{An object of class \linkS4class{H5IdComponent} representing the object to be linked to.}

\item{h5loc}{An object of class \linkS4class{H5IdComponent} representing the location at which the
object is to be linked.  Can represent a file, group, dataset, datatype or attribute.}

\item{newLinkName}{Character string giving the name of the new link.  This should be relative to
\code{h5loc}.}

\item{lcpl, lapl}{\linkS4class{H5IdComponent} objects representing link creation and link access property lists
respectively.  If left as \code{NULL} the default values for these will be used.}
}
\description{
Create a hard link to an object in an HDF5 file
}
\examples{
## Create a temporary copy of an example file, and open it
example_file <- system.file("testfiles", "h5ex_t_array.h5", package="rhdf5")
file.copy(example_file, tempdir())
h5_file <- file.path(tempdir(), "h5ex_t_array.h5")
fid <- H5Fopen( h5_file )

## create a new group without a location in the file
gid <- H5Gcreate_anon(fid)

## create link to newly create group
## relative to the file identifier
H5Olink(h5obj = gid, h5loc = fid, newLinkName = "foo")

## tidy up
H5Gclose(gid)
H5Fclose(fid)

## Check we now have a "/foo" group
h5ls( h5_file )

}
\seealso{
\link{H5Gcreate_anon}
}