R/dfuncEstimErrMessage.R

Defines functions dfuncEstimErrMessage

Documented in dfuncEstimErrMessage

#' @title dfuncEstimErrMessage - dfuncEstim error messages
#' 
#' @description
#' Utility function to produce error messages suitable for \code{stop}
#' 
#' @param txt A text string describing the error. 
#' 
#' @param attri An attribute to report.
#' 
#' @return A string
#' 

# Non-exported
dfuncEstimErrMessage <- function(txt, attri){
  paste0( "Unknown "
          , txt
          , ". Set "
          , txt
          , " using 'RdistDf',"
          , " or with "
          , 'attr(data, "'
          , attri
          , '") <- "value".'
          , " See help(RdistDf) for list of values."
  )
} 

Try the Rdistance package in your browser

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

Rdistance documentation built on April 12, 2025, 1:12 a.m.