R/print.melting.R

Defines functions print.melting

Documented in print.melting

#' Prints melting temperature from a \code{melting} object
#'
#' \code{print.melting} prints to console the melting temperature value from an object of
#' class \code{melting}.
#'
#' @param x An object of class \code{melting}.
#' @param ... Unused
#' @seealso \code{\link[rmelting]{melting}}
#'
#' @return The melting temperature value (degree Celsius) in the console.
#'
#' @export
print.melting <- function(x, ...){

  print(x$Results$`Melting temperature (C)`)
  if (!is.na(x$Message)) {
    message(x$Message)
  }

}

Try the rmelting package in your browser

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

rmelting documentation built on Nov. 8, 2020, 5:19 p.m.