Defines functions .onAttach .onLoad set_default_backend get_default_backend

Documented in get_default_backend set_default_backend

#' get/set the default backend format of cytoframe
#' @param backend one of c("h5", "mem",  "tile")
#' @rdname default_backend
#' @export
get_default_backend <- function(){

#' @rdname default_backend
#' @export
set_default_backend <- function(backend = c("h5", "mem",  "tile")){
  backend <- match.arg(backend)
    stop("Can't set backend to 'tile' because cytolib is not build with tiledb support!")
  options("backend" = backend)

.cytoctx_global <- NULL
.onLoad <- function(libname, pkgname){
  .cytoctx_global <<- cytoctx()
  h5_set_error_handler()#set R stderr as output stream for error handler of libhdf5

.onAttach <- function(libname, pkgname){
  packageStartupMessage(paste0('As part of improvements to flowWorkspace, some behavior of\n', 
                               'GatingSet objects has changed. For details, please read the section\n',
                               'titled "The cytoframe and cytoset classes" in the package vignette:\n\n',
                               '  vignette("flowWorkspace-Introduction", "flowWorkspace")'))
RGLab/flowWorkspace documentation built on July 18, 2021, 9:05 p.m.