R/zzz.R

Defines functions .onLoad

#' assign the following global variables
#' .onLoad because of 'staged-install'
#'
#' See https://developer.r-project.org/Blog/public/2019/02/14/staged-install/index.html
#' for more details.
#'
#' @name fix_namespace
#' @importFrom utils assignInMyNamespace
NULL

.onLoad <- function(libname, pkgname) {
  assignInMyNamespace("cell_type_map", .get_cell_type_map())
  assignInMyNamespace("available_datasets", .get_available_datasets())
  assignInMyNamespace("cell_type_list", .get_cell_type_list())
  assignInMyNamespace("cell_type_tree", .get_cell_type_tree())
  assignInMyNamespace("node_by_name", .get_node_by_name())
}
grst/immunedeconv documentation built on Nov. 10, 2023, 1:33 a.m.