R/check_rh.R

Defines functions check_rh

Documented in check_rh

#' Checks to see if you have a valid RobihHood object
#'
#' @param RH object of class RobinHood
#' @export
check_rh <- function(RH) {

    # Check if RH is the correct class
    if (methods::is(RH) != "RobinHood") stop("RH must be class RobinHood, see RobinHood()")

}
JestonBlu/RobinHood documentation built on Aug. 21, 2023, 7:57 a.m.