R/startup.R

Defines functions .onAttach CytobankBridgeR_news

Documented in CytobankBridgeR_news

#' @import CytobankAPI
#' @importFrom stats setNames
NULL

#' News
#'
#' Get news on CytobankR updates
#' @name news
NULL


.onAttach <- function(libname, pkgname) {
    CytobankBridgeR_version <- read.dcf(file=system.file("DESCRIPTION", package=pkgname), fields="Version")
    packageStartupMessage(paste(pkgname, CytobankBridgeR_version))
    packageStartupMessage("Type CytobankBridgeR_news() to see new features/changes/bug fixes.")
}

#' @rdname news
#' @aliases CytobankBridgeR_news
#'
#' @details \code{CytobankR_news} View a log of CytobankR updates and release notes.
#' @export
CytobankBridgeR_news <- function() {
    news_file <- file.path(system.file(package="CytobankBridgeR"), "NEWS")
    file.show(news_file)
}

Try the CytobankBridgeR package in your browser

Any scripts or data that you put into this service are public.

CytobankBridgeR documentation built on May 2, 2019, 8:27 a.m.