R/utils.R

Defines functions h last

Documented in h last

#' Get last value of a vector
#'
#' @param x a vector from which the last value will be taken
#' @keywords internal
#' @export
last <- function(x) { tail(x, n = 1) }

#' Suppress annoying warning from varComp function
#'
#' @param w a command for fitting reduced models
#' @keywords internal
#' @export
h <- function(w) if( any( grepl( "Recycling array of length 1 in vector-array arithmetic is deprecated", w) ) ) invokeRestart( "muffleWarning" )
guilherme-pereira/QTLpoly documentation built on Oct. 10, 2021, 10:22 p.m.