File: h5errorHandling.R

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 (27 lines) | stat: -rw-r--r-- 716 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
#' Set how HDF5 error messages are displayed
#' 
#' Sets the options for handling HDF5 error messages in the R sessions.
#' 
#' @param type 'normal' (default) shows a one line error message in R.
#' 'verbose' shows the whole HDF5 error message. 'suppress' suppresses the HDF5
#' error messages completely.
#' @return Returns 0 if options are set successfully.
#' @author Bernd Fischer
#' @seealso \link{rhdf5}
#' @examples
#' 
#' h5errorHandling("normal")
#' 
#' @name h5_errorHandling
#' @export h5errorHandling
h5errorHandling <- function(type = "normal") {

  t = switch(type,
         "suppress" = 0L,
         "verbose" = 2L,
         1L)
  .Call("_h5errorHandling", t, PACKAGE = "rhdf5")

  invisible(NULL)
}